15 template <
typename InType,
typename OutType>
16 std::vector<std::vector<std::vector<OutType>>>
18 const std::vector<std::vector<InType>> & data,
const bool is_distributed)
21 const auto values = this->computeBootstrapEstimates(data, is_distributed);
24 std::vector<std::vector<std::vector<OutType>>> output;
25 if (this->processor_id() == 0)
26 for (
const Real & level : this->_levels)
28 long unsigned int index = std::lrint(level * (this->_replicates - 1));
29 output.push_back(values[index]);
35 template <
typename InType,
typename OutType>
41 const std::vector<Real> & levels,
42 unsigned int replicates,
45 std::vector<std::vector<OutType>>> & calc)
50 if (item ==
"percentile")
51 ptr = std::make_unique<
53 other, item, levels, replicates, seed, calc);
55 ::mooseError(
"Failed to create Statistics::BootstrapCalculator object for ", item);
60 #define createVectorOfVectorCalculators(InType, OutType) \ 61 template class Percentile<std::vector<std::vector<InType>>, std::vector<std::vector<OutType>>>; \ 62 template struct BootstrapCalculatorBuilder<std::vector<std::vector<InType>>, \ 63 std::vector<std::vector<OutType>>>
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real