www.mooseframework.org
MonteCarloSampler.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef MONTECARLOSAMPLER_H
9 #define MONTECARLOSAMPLER_H
10 
11 #include "Sampler.h"
12 
13 class MonteCarloSampler;
14 
15 template <>
16 InputParameters validParams<MonteCarloSampler>();
20 class MonteCarloSampler : public Sampler
21 {
22 public:
23  MonteCarloSampler(const InputParameters & parameters);
24 
25 protected:
26  virtual std::vector<DenseMatrix<Real>> sample() override;
27 
29  const std::size_t _num_samples;
30 };
31 
32 #endif /* MONTECARLOSAMPLER_H */
A class used to perform Monte Carlo Sampling.
const std::size_t _num_samples
Number of monte carlo samples to create for each distribution.
InputParameters validParams< MonteCarloSampler >()
virtual std::vector< DenseMatrix< Real > > sample() override
MonteCarloSampler(const InputParameters &parameters)