Tomographer
v4.1
Tomographer C++ Framework Documentation
|
Collect a histogram of values from a MH random walk, with binning analysis. More...
#include <tomographer/mhrwstatscollectors.h>
Public Member Functions | |
ValueHistogramWithBinningMHRWStatsCollector (HistogramParams histogram_params, const ValueCalculator &vcalc, int num_levels, LoggerType &logger_) | |
const BaseHistogramType & | histogram () const |
Get the histogram data collected so far. See BaseHistogramType . | |
const BinningAnalysisType & | getBinningAnalysis () const |
const ResultType & | getResult () const |
Get the final histogram data. This method is needed for Resultable Interface compliance. More... | |
void | init () |
Part of the MHRWStatsCollector Interface. Initializes the histogram to zeros. | |
void | thermalizingDone () |
Part of the MHRWStatsCollector Interface. No-op. | |
void | done () |
Finalize the data collection. Part of the MHRWStatsCollector Interface. | |
template<typename CountIntType2 , typename PointType , typename LLHValueType , typename MHRandomWalk > | |
void | rawMove (CountIntType2 k, bool is_thermalizing, bool is_live_iter, bool accepted, double a, const PointType &newpt, LLHValueType newptval, const PointType &curpt, LLHValueType curptval, MHRandomWalk &mh) |
Part of the MHRWStatsCollector Interface. No-op. | |
template<typename CountIntType2 , typename PointType , typename LLHValueType , typename MHRandomWalk > | |
void | processSample (CountIntType2 k, CountIntType2 n, const PointType &curpt, LLHValueType curptval, MHRandomWalk &mh) |
Part of the MHRWStatsCollector Interface. Records the sample in the histogram. | |
Static Public Attributes | |
static constexpr int | NumTrackValuesCTime = Params::NumTrackValues |
See ValueHistogramWithBinningMHRWStatsCollectorParams::NumTrackValues . | |
static constexpr int | NumLevelsCTime = Params::NumLevels |
See ValueHistogramWithBinningMHRWStatsCollectorParams::NumLevels . | |
Collect a histogram of values from a MH random walk, with binning analysis.
The Params template parameter must be a ValueHistogramWithBinningMHRWStatsCollectorParams with the relevant template parameters.
Definition at line 530 of file mhrwstatscollectors.h.
|
inline |
Get the final histogram data. This method is needed for Resultable Interface compliance.
This will only yield a valid value AFTER the all the data has been collected and done() was called.
Definition at line 623 of file mhrwstatscollectors.h.