mcpele
1.0.0
The Monte Carlo Python Energy Landscape Explorer
|
#include <take_step_probabilities.h>
Public Member Functions | |
virtual | ~TakeStepProbabilities () |
TakeStepProbabilities (const size_t seed) | |
void | add_step (std::shared_ptr< TakeStep > step_input, const double weight_input=1) |
void | displace (pele::Array< double > &coords, MC *mc) |
void | report (pele::Array< double > &old_coords, const double old_energy, pele::Array< double > &new_coords, const double new_energy, const bool success, MC *mc) |
std::vector< double > | get_weights () const |
Create a step pattern similar to TakeStepPattern. However, the steps are specified together with their relative weights and exectured accoringly.
Reference --------- http://www.cplusplus.com/reference/random/discrete_distribution/
Definition at line 20 of file take_step_probabilities.h.
virtual mcpele::TakeStepProbabilities::~TakeStepProbabilities | ( | ) | [inline, virtual] |
Definition at line 28 of file take_step_probabilities.h.
mcpele::TakeStepProbabilities::TakeStepProbabilities | ( | const size_t | seed | ) |
Definition at line 5 of file take_step_probabilities.cpp.
void mcpele::TakeStepProbabilities::add_step | ( | std::shared_ptr< TakeStep > | step_input, |
const double | weight_input = 1 |
||
) |
Definition at line 9 of file take_step_probabilities.cpp.
void mcpele::TakeStepProbabilities::displace | ( | pele::Array< double > & | coords, |
MC * | mc | ||
) | [virtual] |
Implements mcpele::TakeStep.
Definition at line 18 of file take_step_probabilities.cpp.
std::vector<double> mcpele::TakeStepProbabilities::get_weights | ( | ) | const [inline] |
Definition at line 35 of file take_step_probabilities.h.
void mcpele::TakeStepProbabilities::report | ( | pele::Array< double > & | old_coords, |
const double | old_energy, | ||
pele::Array< double > & | new_coords, | ||
const double | new_energy, | ||
const bool | success, | ||
MC * | mc | ||
) | [virtual] |
Reimplemented from mcpele::TakeStep.
Definition at line 27 of file take_step_probabilities.cpp.