https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MonteCarloSampler.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<Distribution const *> _distributions;
30
32 const std::vector<DistributionName> & _distribution_names;
33};
A class used to perform Monte Carlo Sampling.
std::vector< Distribution const * > _distributions
Storage for distribution objects to be utilized.
virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override
Return the sample for the given row and column.
const std::vector< DistributionName > & _distribution_names
Distribution names.
static InputParameters validParams()
const InputParameters & parameters() const