CASM
AClustersApproachtoStatisticalMechanics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
CASM::MCData Class Reference

#include <MCData.hh>

Detailed Description

MCData stores observations of properties.

Definition at line 9 of file MCData.hh.

Public Types

typedef unsigned long int 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

typedef unsigned long int CASM::MCData::size_type

Definition at line 13 of file MCData.hh.

Constructor & Destructor Documentation

CASM::MCData::MCData ( )
inline

Default constructor.

Definition at line 16 of file MCData.hh.

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

Constructor with initial buffer size 'count'.

Definition at line 20 of file MCData.hh.

Member Function Documentation

void CASM::MCData::clear ( )
inline

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

Definition at line 25 of file MCData.hh.

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

Return all observations.

Definition at line 44 of file MCData.hh.

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

Add an observation.

Definition at line 30 of file MCData.hh.

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

Number of observations.

Definition at line 49 of file MCData.hh.

Member Data Documentation

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

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

Definition at line 57 of file MCData.hh.

size_type CASM::MCData::m_size
private

The number of observations.

Definition at line 60 of file MCData.hh.


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