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 
14 // Forward declarations
16 
32 {
33 public:
35 
37 
38 protected:
43  virtual void executeTearDown() override;
44 
57  virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override;
58 
60  std::vector<Distribution const *> _distributions;
62  std::vector<std::unique_ptr<MooseRandomPerturbation>> _shufflers;
63 };
LatinHypercubeSampler(const InputParameters &parameters)
const InputParameters & parameters() const
virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override
Return the sample value for the given row and column.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void executeTearDown() override
Constructs one MooseRandomPerturbation per column, each seeded independently from generator 1...
std::vector< std::unique_ptr< MooseRandomPerturbation > > _shufflers
Per-column pseudo-random permuters that enforce the LHS bin assignment.
std::vector< Distribution const * > _distributions
Distribution objects, one per column, whose quantile functions are sampled.
Implements Latin Hypercube Sampling (LHS) over a set of distributions.
uint8_t dof_id_type