CASM  1.1.0
A Clusters Approach to Statistical Mechanics
CASM::Monte::MCData Class Reference

#include <MCData.hh>

Detailed Description

MCData stores observations of properties.

Definition at line 12 of file MCData.hh.

Public Types

typedef Monte::size_type size_type
 

Public Member Functions

 MCData ()
 Default constructor. More...
 
 MCData (size_type count)
 Constructor with initial buffer size 'count'. More...
 
void clear ()
 Forget all the observed values (does not resize reserved space) More...
 
void push_back (double value)
 Add an observation. More...
 
Eigen::VectorBlock< const Eigen::VectorXd > observations () const
 Return all observations. More...
 
size_type size () const
 Number of observations. More...
 

Private Attributes

Eigen::VectorXd m_observation
 vector of all observations (includes m_size observations, and the rest is reserved space) More...
 
size_type m_size
 The number of observations. More...
 

Member Typedef Documentation

◆ size_type

Definition at line 14 of file MCData.hh.

Constructor & Destructor Documentation

◆ MCData() [1/2]

CASM::Monte::MCData::MCData ( )
inline

Default constructor.

Definition at line 17 of file MCData.hh.

◆ MCData() [2/2]

CASM::Monte::MCData::MCData ( size_type  count)
inline

Constructor with initial buffer size 'count'.

Definition at line 20 of file MCData.hh.

Member Function Documentation

◆ clear()

void CASM::Monte::MCData::clear ( )
inline

Forget all the observed values (does not resize reserved space)

Definition at line 24 of file MCData.hh.

◆ observations()

Eigen::VectorBlock<const Eigen::VectorXd> CASM::Monte::MCData::observations ( ) const
inline

Return all observations.

Definition at line 40 of file MCData.hh.

◆ push_back()

void CASM::Monte::MCData::push_back ( double  value)
inline

Add an observation.

Definition at line 27 of file MCData.hh.

◆ size()

size_type CASM::Monte::MCData::size ( ) const
inline

Number of observations.

Definition at line 45 of file MCData.hh.

Member Data Documentation

◆ m_observation

Eigen::VectorXd CASM::Monte::MCData::m_observation
private

vector of all observations (includes m_size observations, and the rest is reserved space)

Definition at line 50 of file MCData.hh.

◆ m_size

size_type CASM::Monte::MCData::m_size
private

The number of observations.

Definition at line 53 of file MCData.hh.


The documentation for this class was generated from the following file: