https://mooseframework.inl.gov
Static Public Member Functions | List of all members
StochasticTools::BootstrapCalculatorBuilder< InType, OutType > Struct Template Reference

#include <BootstrapCalculators.h>

Static Public Member Functions

static std::unique_ptr< BootstrapCalculator< InType, OutType > > build (const MooseEnum &, const libMesh::ParallelObject &, const std::vector< Real > &, unsigned int, unsigned int, StochasticTools::Calculator< InType, OutType > &)
 

Detailed Description

template<typename InType, typename OutType>
struct StochasticTools::BootstrapCalculatorBuilder< InType, OutType >

Definition at line 114 of file BootstrapCalculators.h.

Member Function Documentation

◆ build()

template<typename InType , typename OutType >
std::unique_ptr< BootstrapCalculator< InType, OutType > > StochasticTools::BootstrapCalculatorBuilder< InType, OutType >::build ( const MooseEnum item,
const libMesh::ParallelObject other,
const std::vector< Real > &  levels,
unsigned int  replicates,
unsigned int  seed,
StochasticTools::Calculator< InType, OutType > &  calc 
)
static

Definition at line 125 of file BootstrapCalculators.C.

132 {
133  std::unique_ptr<BootstrapCalculator<InType, OutType>> ptr = nullptr;
134  if (item == "percentile")
135  ptr =
136  std::make_unique<Percentile<InType, OutType>>(other, item, levels, replicates, seed, calc);
137  else if (item == "bca")
138  ptr = std::make_unique<BiasCorrectedAccelerated<InType, OutType>>(
139  other, item, levels, replicates, seed, calc);
140 
141  if (!ptr)
142  ::mooseError("Failed to create Statistics::BootstrapCalculator object for ", item);
143 
144  return ptr;
145 }

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