https://mooseframework.inl.gov
LatinHypercubeSampler.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 
22 {
23 public:
25 
27 
28 protected:
29  virtual void sampleSetUp(const Sampler::SampleMode mode) override;
30  virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override;
31 
33  std::vector<Distribution const *> _distributions;
34 
35 private:
36  // Probability values for each distribution
37  std::vector<std::vector<Real>> _probabilities;
38 
39  // toggle for local/global data access in computeSample
40  bool _is_local;
41 };
LatinHypercubeSampler(const InputParameters &parameters)
std::vector< std::vector< Real > > _probabilities
virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override
static InputParameters validParams()
virtual void sampleSetUp(const Sampler::SampleMode mode) override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< Distribution const * > _distributions
Storage for distribution objects to be utilized.
const InputParameters & parameters() const
A class used to perform Monte Carlo Sampling.
uint8_t dof_id_type