ReporterContext that utilizes a Calculator object to compute its value and confidence levels. More...
#include <StatisticsReporter.h>
Public Types | |
enum | AutoOperation |
Public Member Functions | |
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) | |
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 MooseEnum &ci_method, const std::vector< Real > &ci_levels, unsigned int ci_replicates, unsigned int ci_seed) | |
virtual void | finalize () override |
virtual void | storeInfo (nlohmann::json &json) const override |
virtual void | declareClone (ReporterData &r_data, const ReporterName &r_name, const ReporterMode &mode, const MooseObject &producer) const override |
virtual void | declareVectorClone (ReporterData &r_data, const ReporterName &r_name, const ReporterMode &mode, const MooseObject &producer) const override |
virtual void | resize (dof_id_type local_size) final |
virtual void | clear () final |
virtual void | vectorSum () final |
virtual std::string | contextType () const override |
const ReporterName & | name () const override final |
const ReporterState< std::pair< OutType, std::vector< OutType > > > & | state () const |
virtual std::string | type () const override |
virtual void | transfer (ReporterData &r_data, const ReporterName &r_name, unsigned int time_index=0) const override |
virtual void | transferToVector (ReporterData &r_data, const ReporterName &r_name, dof_id_type index, unsigned int time_index=0) const override |
virtual void | transferFromVector (ReporterData &r_data, const ReporterName &r_name, dof_id_type index, unsigned int time_index=0) const override |
void | init (const ReporterMode &mode) |
const MooseObject & | getProducer () const |
const ReporterProducerEnum & | getProducerModeEnum () const |
const Parallel::Communicator & | comm () const |
processor_id_type | n_processors () const |
processor_id_type | processor_id () const |
Protected Member Functions | |
void | broadcast () |
virtual void | store (nlohmann::json &json) const override |
virtual void | copyValuesBack () override |
virtual bool | restoreState () override |
void | requiresConsumerModes (const ReporterStateBase &state, const std::set< ReporterMode > &modes) const |
Protected Attributes | |
ReporterState< std::pair< OutType, std::vector< OutType > > > & | _state |
const MooseObject & | _producer |
ReporterProducerEnum | _producer_enum |
const Parallel::Communicator & | _communicator |
Private Attributes | |
const InType & | _data |
Data used for the statistic calculation. More... | |
const ReporterProducerEnum & | _data_mode |
Mode in which the above data was produced. More... | |
std::unique_ptr< StochasticTools::Calculator< InType, OutType > > | _calc_ptr |
Storage for the Calculator object for the desired stat, this is created in constructor. More... | |
std::unique_ptr< StochasticTools::BootstrapCalculator< InType, OutType > > | _ci_calc_ptr = nullptr |
Storage for the BootstrapCalculator for the desired confidence interval calculations (optional) More... | |
ReporterContext that utilizes a Calculator object to compute its value and confidence levels.
Definition at line 21 of file StatisticsReporter.h.
ReporterStatisticsContext< InType, OutType >::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 | ||
) |
Definition at line 61 of file StatisticsReporter.h.
ReporterStatisticsContext< InType, OutType >::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 MooseEnum & | ci_method, | ||
const std::vector< Real > & | ci_levels, | ||
unsigned int | ci_replicates, | ||
unsigned int | ci_seed | ||
) |
Definition at line 76 of file StatisticsReporter.h.
|
overridevirtual |
Reimplemented from ReporterGeneralContext< std::pair< OutType, std::vector< OutType > > >.
Definition at line 95 of file StatisticsReporter.h.
|
overridevirtual |
Reimplemented from ReporterGeneralContext< std::pair< OutType, std::vector< OutType > > >.
Definition at line 111 of file StatisticsReporter.h.
|
private |
Storage for the Calculator object for the desired stat, this is created in constructor.
Definition at line 54 of file StatisticsReporter.h.
Referenced by ReporterStatisticsContext< InType, OutType >::ReporterStatisticsContext().
|
private |
Storage for the BootstrapCalculator for the desired confidence interval calculations (optional)
Definition at line 57 of file StatisticsReporter.h.
Referenced by ReporterStatisticsContext< InType, OutType >::ReporterStatisticsContext().
|
private |
Data used for the statistic calculation.
Definition at line 48 of file StatisticsReporter.h.
|
private |
Mode in which the above data was produced.
Definition at line 51 of file StatisticsReporter.h.