https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
14namespace StochasticTools
15{
16
17template <typename InType, typename OutType>
18class 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{
21public:
22 using BootstrapCalculator<std::vector<std::vector<InType>>,
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
28template <typename InType, typename OutType>
29struct 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}
Base class for computing bootstrap confidence level intervals.
virtual std::vector< OutType > compute(const InType &, const bool) override
Enum for batch type in stochastic tools MultiApp.
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 > &)