WLTM¶
-
class
WLTM
: public feasst::Bias¶ Begin with WangLandau and end with TransitionMatrix.
Public Functions
-
WLTM
(const argtype &args = argtype())¶ args:
collect_flatness: Begin populating the collection matrix when Wang-Landau has completed this many flatness checks. Note that populating the collection matrix does not necessarily mean that the collection matrix is used to compute the bias.
min_flatness: After this many flatness checks have been completed with Wang-Landau, use the bias from the collection matrix instead. Also, increment the phase when this occurs.
min_sweeps: Number of sweeps required for completion.
-
void
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.
-
void
set_num_iterations
(const int sweeps)¶ Updates min_sweeps, but neither flatness.
-
const LnProbability &
ln_prob
() const¶ The natural log of the macrostate probability.
-
void
infrequent_update
()¶ Perform an infrequent update to the bias.
-
void
set_ln_prob
(const LnProbability &ln_prob)¶ Set the macrostate probability distribution.
-