https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
19public:
21
23
24protected:
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};
const InputParameters & parameters() const
A class used to perform nested Monte Carlo Sampling.
std::vector< dof_id_type > _col_mod
Helper for determining the target row for the given column index: target_row = std::floor(row_index /...
static InputParameters validParams()
virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override
Return the sample for the given row and column.
std::vector< const Distribution * > _distributions
Storage for distribution objects to be utilized.