WangLandau: public feasst::Bias¶
WangLandau(argtype args = argtype())¶
min_flatness : Number of flatness checks required for completion.
add_to_ln_probability : The initial amount to add to the natural log of the macrostate probability upon visiting that state (default: 1.0).
reduce_ln_probability : Reduce the amount to add to the natural log of the macrostate probability by multiplcation of this factor upon reaching a sufficiently flat histogram (default: 0.5).
flatness_threshold : The visited states histogram is determined to be flat when the percentage between minimum visisted states and average reaches this threshold (default: 0.8).
updates_per_flat_check: Updates per check for flatness (default: 10^2).
min_visit_per_macro: The minimum number of visits for each macrostate required during flatness check (default: 10^3).
update_or_revert(const int macrostate_old, const int macrostate_new, const double ln_metropolis_prob, const bool is_accepted, const bool revert)¶
Update the bias due to an attempted transition.
Return the number of iterations required for completion. In TransitionMatrix and WLTM, this is the minimum number of sweeps. In WangLandau, this is the minimum number of flatness checks. Afterward, check again for completeness.
set_num_iterations_to_complete(const int iteration)¶
Set the number of iterations required for completion.