#include <Calculators.h>
template<typename InType, typename OutType>
struct StochasticTools::CalculatorBuilder< InType, OutType >
Definition at line 280 of file Calculators.h.
◆ build()
template<typename InType , typename OutType >
Definition at line 293 of file Calculators.C.
Referenced by StochasticTools::makeCalculator().
297 return std::make_unique<Min<InType, OutType>>(other, item);
299 else if (item ==
"max")
300 return std::make_unique<Max<InType, OutType>>(other, item);
302 else if (item ==
"sum")
303 return std::make_unique<Sum<InType, OutType>>(other, item);
305 else if (item ==
"mean" || item ==
"average")
306 return std::make_unique<Mean<InType, OutType>>(other, item);
308 else if (item ==
"stddev")
309 return std::make_unique<StdDev<InType, OutType>>(other, item);
311 else if (item ==
"stderr")
312 return std::make_unique<StdErr<InType, OutType>>(other, item);
314 else if (item ==
"norm2")
315 return std::make_unique<L2Norm<InType, OutType>>(other, item);
317 else if (item ==
"ratio")
318 return std::make_unique<Ratio<InType, OutType>>(other, item);
320 else if (item ==
"median")
321 return std::make_unique<Median<InType, OutType>>(other, item);
323 else if (item ==
"meanabs")
324 return std::make_unique<MeanAbsoluteValue<InType, OutType>>(other, item);
326 ::mooseError(
"Failed to create Statistics::Calculator object for ", item);
The documentation for this struct was generated from the following files: