Line data Source code
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: 22 : using BootstrapCalculator<std::vector<std::vector<InType>>, 23 16 : 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 &, 35 : const libMesh::ParallelObject &, 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 : }