Tomographer
v1.0a
Tomographer C++ Framework Documentation
|
Collect a histogram of values from a MH random walk, with binning analysis. More...
#include <tomographer/mhrw.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 & | get_binning_analysis () const |
const Result & | 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 | thermalizing_done () |
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 | raw_move (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 | process_sample (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.
|
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.