mcpele  1.0.0
The Monte Carlo Python Energy Landscape Explorer
 All Classes Namespaces Functions Variables Typedefs
Public Member Functions
mcpele::TakeStepProbabilities Class Reference

#include <take_step_probabilities.h>

Inheritance diagram for mcpele::TakeStepProbabilities:
mcpele::TakeStep

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

Definition at line 28 of file take_step_probabilities.h.

Definition at line 5 of file take_step_probabilities.cpp.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs