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

#include <random_coords_displacement.h>

Inheritance diagram for mcpele::RandomCoordsDisplacement:
mcpele::TakeStep mcpele::RandomCoordsDisplacementAll mcpele::RandomCoordsDisplacementSingle

List of all members.

Public Member Functions

 RandomCoordsDisplacement (const size_t rseed, const double stepsize=1)
virtual ~RandomCoordsDisplacement ()
virtual void displace (pele::Array< double > &coords, MC *mc)=0
size_t get_seed () const
void set_generator_seed (const size_t inp)
double expected_mean () const
double get_stepsize () const
double expected_variance (const double ss) const
void increase_acceptance (const double factor)
void decrease_acceptance (const double factor)
size_t get_count () const

Protected Attributes

size_t m_seed
std::mt19937_64 m_generator
std::uniform_real_distribution
< double > 
m_real_distribution
double m_stepsize
size_t m_count

Detailed Description

Random coords displacement, generates a random displacement for a N dimensional system sampling from a N-dimensional sphere. The stepsize is defined per coordinates, that's why the maximum stepsize is sqrt(N) * stepsize.

Definition at line 16 of file random_coords_displacement.h.


Constructor & Destructor Documentation

mcpele::RandomCoordsDisplacement::RandomCoordsDisplacement ( const size_t  rseed,
const double  stepsize = 1 
)

Definition at line 7 of file random_coords_displacement.cpp.

Definition at line 25 of file random_coords_displacement.h.


Member Function Documentation

void mcpele::RandomCoordsDisplacement::decrease_acceptance ( const double  factor) [inline, virtual]

Reimplemented from mcpele::TakeStep.

Definition at line 36 of file random_coords_displacement.h.

virtual void mcpele::RandomCoordsDisplacement::displace ( pele::Array< double > &  coords,
MC mc 
) [pure virtual]

Definition at line 29 of file random_coords_displacement.h.

double mcpele::RandomCoordsDisplacement::expected_variance ( const double  ss) const [inline]

Definition at line 37 of file random_coords_displacement.h.

size_t mcpele::RandomCoordsDisplacement::get_seed ( ) const [inline]

Definition at line 27 of file random_coords_displacement.h.

Definition at line 30 of file random_coords_displacement.h.

void mcpele::RandomCoordsDisplacement::increase_acceptance ( const double  factor) [inline, virtual]

Reimplemented from mcpele::TakeStep.

Definition at line 35 of file random_coords_displacement.h.

void mcpele::RandomCoordsDisplacement::set_generator_seed ( const size_t  inp) [inline]

Definition at line 28 of file random_coords_displacement.h.


Member Data Documentation

Definition at line 22 of file random_coords_displacement.h.

std::mt19937_64 mcpele::RandomCoordsDisplacement::m_generator [protected]

Definition at line 19 of file random_coords_displacement.h.

std::uniform_real_distribution<double> mcpele::RandomCoordsDisplacement::m_real_distribution [protected]

Definition at line 20 of file random_coords_displacement.h.

Definition at line 18 of file random_coords_displacement.h.

Definition at line 21 of file random_coords_displacement.h.


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