https://mooseframework.inl.gov
NestedMonteCarloSampler.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 "Sampler.h"
13 
18 {
19 public:
21 
23 
24 protected:
26  virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override;
27 
29  std::vector<const Distribution *> _distributions;
32  std::vector<dof_id_type> _col_mod;
33 };
static InputParameters validParams()
NestedMonteCarloSampler(const InputParameters &parameters)
const InputParameters & parameters() const
std::vector< const Distribution * > _distributions
Storage for distribution objects to be utilized.
std::vector< dof_id_type > _col_mod
Helper for determining the target row for the given column index: target_row = std::floor(row_index /...
virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override
Return the sample for the given row and column.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
A class used to perform nested Monte Carlo Sampling.
uint8_t dof_id_type