https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
33public:
35
37
38protected:
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};
Implements Latin Hypercube Sampling (LHS) over a set of distributions.
virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override
Return the sample value for the given row and column.
std::vector< std::unique_ptr< MooseRandomPerturbation > > _shufflers
Per-column pseudo-random permuters that enforce the LHS bin assignment.
virtual void executeTearDown() override
Constructs one MooseRandomPerturbation per column, each seeded independently from generator 1.
std::vector< Distribution const * > _distributions
Distribution objects, one per column, whose quantile functions are sampled.
static InputParameters validParams()
const InputParameters & parameters() const