CASM
AClustersApproachtoStatisticalMechanics
|
#include <MonteSampler.hh>
Data structure to make queries occur once each sample time.
Definition at line 282 of file MonteSampler.hh.
Public Types | |
typedef Index | size_type |
Public Member Functions | |
Formatter (const DataFormatter< Configuration > &formatter) | |
Construct sampler that does not need to converge. More... | |
DataFormatter< Configuration > & | get () |
const DataFormatter < Configuration > & | get () const |
const Eigen::VectorXd & | sample (const MonteCarlo &mc, const MonteCounter &counter) |
Evaluate datum formatters, if necessary, and return result. More... | |
Private Attributes | |
DataFormatter< Configuration > | m_formatter |
Eigen::VectorXd | m_value |
std::pair < MonteCounter::size_type, MonteCounter::size_type > | m_last_sample |
Definition at line 286 of file MonteSampler.hh.
CASM::QueryMonteSampler::Formatter::Formatter | ( | const DataFormatter< Configuration > & | formatter | ) |
Construct sampler that does not need to converge.
Definition at line 120 of file MonteSampler.cc.
|
inline |
Definition at line 291 of file MonteSampler.hh.
|
inline |
Definition at line 295 of file MonteSampler.hh.
const Eigen::VectorXd & CASM::QueryMonteSampler::Formatter::sample | ( | const MonteCarlo & | mc, |
const MonteCounter & | counter | ||
) |
Evaluate datum formatters, if necessary, and return result.
Definition at line 127 of file MonteSampler.cc.
|
private |
Definition at line 304 of file MonteSampler.hh.
|
private |
Definition at line 306 of file MonteSampler.hh.
|
private |
Definition at line 305 of file MonteSampler.hh.