|
| virtual Snapshot_ptr | update_increment () |
| | update_increment is called after new points have been generated and accepted(or not) in the WL algo. it updates the increment by which the (log) density is increased when a new point is generated in a given bin.
|
| void | update_densities (const Bin_index &index) |
| | update_densities updates the density vector when a new point is sampled by the WL algorithm.
|
| std::pair< bool, Snapshot_ptr > | energy_out_of_range (const DS_conformation &conf) |
| | energy_out_of_range is called when a point is sampled in a not already existing bin. It should handle the creation of a new bin if supported. This should be modified to initialize Custom_per_bin_stats at propers values if needed.
|
| void | update_histogram (const DS_conformation &newpt, const DS_conformation &oldpt, const bool &accepted, const bool &boundary_check) |
| | update_histogram is called when a new point is sampled. It should be used to store some statistics on how the algorithm is working, which might be later used in update_parameters()
|
| double & | get_density (const Bin_index &index) |
| | get_density returns the density of a point
|
| Bin_index | get_bin_index_from_energy (const double &e) |
| | get_bin_index_from_energy finds the bin containing the energy e
|
| Bin_index | get_bin_index_from_energy (const double &e, const double &e1, const Bin_index &i1) |
| | get_bin_index_from_energy should uses that the point previously sampled should be in a bin close to the new newly sampled point
|
| bool | is_energy_in_range (const DS_conformation &conf) |
| | is_energy_in_range checks if a Bin_index is valid.
|
template<
class Conformation,
class Bin_properties = Bin_properties_Internal, template<
class >
class DS_snapshot_ = T_DS_snapshot_default>
class SBL::GT::T_WL_Data_Structure_Internal< Conformation, Bin_properties, DS_snapshot_ >
bin management: main data structure used by Wang_landau algorithm
- manages bins (creation, index of bin for point, etc)
- handles the flat histogram or 1/t policy
- performs the DoS update for a new point
- records all relevant stats