|
GLAC
1.0
|
A class for storing the observable data. More...
#include <observablestorer.h>
Public Member Functions | |
| ObservableStorer (unsigned long int NSize) | |
| ObservableStorer::ObservableStorer. More... | |
| ~ObservableStorer () | |
| double & | operator[] (unsigned long int iObs) |
| void | gatherResults () |
| ObservableStorer::gatherResults. More... | |
| void | runStatistics () |
| ObservableStorer::runStatistics. More... | |
| void | printStatistics () |
| void | writeObservableToFile (double acceptanceRatio) |
| ObservableStorer::writeObservableToFile. More... | |
| void | writeFlowObservableToFile (unsigned long int configNumber) |
| ObservableStorer::writeFlowObservableToFile. More... | |
| std::vector< double > | getObservableArray () |
| double | getObservable (unsigned long int iObs) |
| std::string | getObservableName () |
| void | setObservableName (std::string observableName) |
| void | setNormalizeObservableByProcessor (bool norm) |
| void | reset () |
| ObservableStorer::reset set all the members for observable storage to zero. More... | |
A class for storing the observable data.
Contains methods for printing statistics, writing to file, setting observables and reseting ect.
| ObservableStorer::ObservableStorer | ( | unsigned long int | NSize | ) |
ObservableStorer::ObservableStorer.
| NSize | the number of observables to allow storage for. |
Stores two arrays, one for observables, and one for observables squared.
| ObservableStorer::~ObservableStorer | ( | ) |
| void ObservableStorer::gatherResults | ( | ) |
ObservableStorer::gatherResults.
Performs a MPI reduce between all the data gathered and, if set - divides by the number of processors.
|
inline |
|
inline |
|
inline |
|
inline |
| void ObservableStorer::printStatistics | ( | ) |
| void ObservableStorer::reset | ( | ) |
ObservableStorer::reset set all the members for observable storage to zero.
| void ObservableStorer::runStatistics | ( | ) |
ObservableStorer::runStatistics.
Performs simple statistics such as mean, variance and standard deviation.
|
inline |
|
inline |
| void ObservableStorer::writeFlowObservableToFile | ( | unsigned long int | configNumber | ) |
ObservableStorer::writeFlowObservableToFile.
| configNumber | configuration number |
Writes to file using the IO::writeFlowObservableToFile method.
| void ObservableStorer::writeObservableToFile | ( | double | acceptanceRatio | ) |
ObservableStorer::writeObservableToFile.
| acceptanceRatio | from the Metropolis algorithm |
Writes to file using the IO::writeObservablesToFile method.
1.8.15