www.mooseframework.org
MonteCarloSampler.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
17 class MonteCarloSampler : public Sampler
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<Distribution const *> _distributions;
30 
32  const std::vector<DistributionName> & _distribution_names;
33 };
std::vector< Distribution const * > _distributions
Storage for distribution objects to be utilized.
A class used to perform Monte Carlo Sampling.
virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override
Return the sample for the given row and column.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MonteCarloSampler(const InputParameters &parameters)
const InputParameters & parameters() const
const std::vector< DistributionName > & _distribution_names
Distribution names.
uint8_t dof_id_type