13 #ifndef OBSERVABLESTORER_H 14 #define OBSERVABLESTORER_H 23 std::string m_observableName;
25 bool m_normalizeObservableByProcessor =
false;
29 double m_averagedObservable = 0;
30 double m_varianceObservable = 0;
31 double m_averagedObservableSquared = 0;
32 double m_stdObservable = 0;
33 std::vector<double> m_observables;
34 std::vector<double> m_observablesSquared;
40 double &
operator[](
unsigned long int iObs) {
return m_observables.at(iObs); }
56 double getObservable(
unsigned long int iObs) {
return m_observables[iObs]; }
65 #endif // OBSERVABLESTORER_H void printStatistics()
Definition: observablestorer.cpp:100
double getObservable(unsigned long int iObs)
Definition: observablestorer.h:56
A class for storing the observable data.
Definition: observablestorer.h:19
void setObservableName(std::string observableName)
Definition: observablestorer.h:60
ObservableStorer(unsigned long int NSize)
ObservableStorer::ObservableStorer.
Definition: observablestorer.cpp:14
~ObservableStorer()
Definition: observablestorer.cpp:29
void gatherResults()
ObservableStorer::gatherResults.
Definition: observablestorer.cpp:38
std::vector< double > getObservableArray()
Definition: observablestorer.h:55
std::string getObservableName()
Definition: observablestorer.h:57
void setNormalizeObservableByProcessor(bool norm)
Definition: observablestorer.h:61
void runStatistics()
ObservableStorer::runStatistics.
Definition: observablestorer.cpp:77
void reset()
ObservableStorer::reset set all the members for observable storage to zero.
Definition: observablestorer.cpp:146
void writeObservableToFile(double acceptanceRatio)
ObservableStorer::writeObservableToFile.
Definition: observablestorer.cpp:120
void writeFlowObservableToFile(unsigned long int configNumber)
ObservableStorer::writeFlowObservableToFile.
Definition: observablestorer.cpp:135
double & operator[](unsigned long int iObs)
Definition: observablestorer.h:40