https://mooseframework.inl.gov
VectorOfVectorCalculators.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "VectorCalculators.h"
13 
14 namespace StochasticTools
15 {
16 
17 template <typename InType, typename OutType>
18 class Percentile<std::vector<std::vector<InType>>, std::vector<std::vector<OutType>>>
19  : public BootstrapCalculator<std::vector<std::vector<InType>>, std::vector<std::vector<OutType>>>
20 {
21 public:
23  std::vector<std::vector<OutType>>>::BootstrapCalculator;
24  virtual std::vector<std::vector<std::vector<OutType>>>
25  compute(const std::vector<std::vector<InType>> &, const bool) override;
26 };
27 
28 template <typename InType, typename OutType>
29 struct BootstrapCalculatorBuilder<std::vector<std::vector<InType>>,
30  std::vector<std::vector<OutType>>>
31 {
32  static std::unique_ptr<
33  BootstrapCalculator<std::vector<std::vector<InType>>, std::vector<std::vector<OutType>>>>
34  build(const MooseEnum &,
36  const std::vector<Real> &,
37  unsigned int,
38  unsigned int,
39  StochasticTools::Calculator<std::vector<std::vector<InType>>,
40  std::vector<std::vector<OutType>>> &);
41 };
42 }
BootstrapCalculator(const libMesh::ParallelObject &other, const std::string &name, const std::vector< Real > &levels, unsigned int replicates, unsigned int seed, StochasticTools::Calculator< InType, OutType > &calc)
Enum for batch type in stochastic tools MultiApp.
Base class for computing bootstrap confidence level intervals.
virtual std::vector< OutType > compute(const InType &, const bool) override
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 > &)