39 const std::vector<Real> & ci_levels,
40 unsigned int ci_replicates,
41 unsigned int ci_seed);
44 virtual void storeInfo(nlohmann::json & json)
const override;
54 std::unique_ptr<StochasticTools::Calculator<InType, OutType>>
_calc_ptr;
57 std::unique_ptr<StochasticTools::BootstrapCalculator<InType, OutType>>
_ci_calc_ptr =
nullptr;
79 ReporterState<std::pair<OutType, std::vector<OutType>>> & state,
84 const std::vector<Real> & ci_levels,
85 unsigned int ci_replicates,
89 _ci_calc_ptr = StochasticTools::makeBootstrapCalculator<InType, OutType>(
90 ci_method, other, ci_levels, ci_replicates, ci_seed, *
_calc_ptr);
const ReporterState< T > & state() const
ReporterContext that utilizes a Calculator object to compute its value and confidence levels.
std::unique_ptr< StochasticTools::Calculator< InType, OutType > > _calc_ptr
Storage for the Calculator object for the desired stat, this is created in constructor.
const ReporterProducerEnum & _data_mode
Mode in which the above data was produced.
virtual void storeInfo(nlohmann::json &json) const override
ReporterStatisticsContext(const libMesh::ParallelObject &other, const MooseObject &producer, ReporterState< std::pair< OutType, std::vector< OutType > > > &state, const InType &data, const ReporterProducerEnum &mode, const MooseEnumItem &stat)
const InType & _data
Data used for the statistic calculation.
std::unique_ptr< StochasticTools::BootstrapCalculator< InType, OutType > > _ci_calc_ptr
Storage for the BootstrapCalculator for the desired confidence interval calculations (optional)
virtual void finalize() override