Tomographer  v2.0
Tomographer C++ Framework Documentation
Tomographer::MHRWTasks::ValueHistogramTasks::ResultsCollectorWithBinningAnalysis< CDataBaseType_, LoggerType_ > Struct Template Reference

Results collector, if no binning analysis is being used. More...

#include <tomographer2/mhrw_valuehist_tasks.h>

+ Inheritance diagram for Tomographer::MHRWTasks::ValueHistogramTasks::ResultsCollectorWithBinningAnalysis< CDataBaseType_, LoggerType_ >:
+ Collaboration diagram for Tomographer::MHRWTasks::ValueHistogramTasks::ResultsCollectorWithBinningAnalysis< CDataBaseType_, LoggerType_ >:

Public Types

typedef CDataBaseType_ CDataBaseType
 
typedef CDataBaseType::ValueCalculator ValueCalculator
 
typedef CDataBaseType::CountRealType CountRealType
 
typedef CDataBaseType::CountIntType CountIntType
 
typedef CDataBaseType::StepRealType StepRealType
 
typedef LoggerType_ LoggerType
 
typedef tomo_internal::histogram_types< CDataBaseType_, true >::BinningMHRWStatsCollectorParams BinningMHRWStatsCollectorParams
 
typedef BinningMHRWStatsCollectorParams::BinningAnalysisParamsType BinningAnalysisParamsType
 
typedef BinningMHRWStatsCollectorParams::Result MHRWStatsCollectorResultType
 
typedef CDataBaseType::HistogramType HistogramType
 
typedef CDataBaseType::HistogramParams HistogramParams
 
typedef AveragedHistogram< HistogramType, CountRealType > FinalHistogramType
 The final histogram, properly averaged.
 
typedef UniformBinsHistogram< typename HistogramType::Scalar, CountRealType > SimpleNormalizedHistogramType
 The "simple" histogram, as if without binning analysis. More...
 
typedef AveragedHistogram< SimpleNormalizedHistogramType, double > SimpleFinalHistogramType
 
typedef MHRandomWalkTaskResult< MHRWStatsCollectorResultType, CountIntType, StepRealType > RunTaskResult
 
typedef std::vector< RunTaskResult * > RunTaskResultList
 

Public Member Functions

 TOMO_STATIC_ASSERT_EXPR (CDataBaseType::UseBinningAnalysis)
 
 ResultsCollectorWithBinningAnalysis (LoggerType &logger_)
 
bool isFinalized () const
 
FinalHistogramType finalHistogram () const
 
SimpleFinalHistogramType simpleFinalHistogram () const
 
std::size_t numTasks () const
 
const RunTaskResultListcollectedRunTaskResults () const
 
const RunTaskResultcollectedRunTaskResult (std::size_t task_no) const
 
template<typename RealType = double>
void printHistogramCsv (std::ostream &stream, std::string sep="\t", std::string linesep="\n", int precision=10)
 
template<typename Cnt , typename CData >
void init (Cnt num_total_runs, Cnt, const CData *pcdata)
 
template<typename Cnt , typename TaskResultType , typename CData >
void collectResult (Cnt task_no, TaskResultType &&taskresult, const CData *)
 
template<typename Cnt , typename CData >
void runsFinished (Cnt, const CData *)
 

Detailed Description

template<typename CDataBaseType_, typename LoggerType_>
struct Tomographer::MHRWTasks::ValueHistogramTasks::ResultsCollectorWithBinningAnalysis< CDataBaseType_, LoggerType_ >

Results collector, if no binning analysis is being used.

You can directly get the right type by querying the type "CDataBase::ResultsCollectorType<..>::type".

Todo:
DOC !!!!

Definition at line 256 of file mhrw_valuehist_tasks.h.

Member Typedef Documentation

template<typename CDataBaseType_ , typename LoggerType_ >
typedef UniformBinsHistogram<typename HistogramType::Scalar, CountRealType> Tomographer::MHRWTasks::ValueHistogramTasks::ResultsCollectorWithBinningAnalysis< CDataBaseType_, LoggerType_ >::SimpleNormalizedHistogramType

The "simple" histogram, as if without binning analysis.

Note we need a double counting type, because the histograms we'll be recording are normalized.

Definition at line 287 of file mhrw_valuehist_tasks.h.


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