22 "The distribution names to be sampled, the number of distributions provided defines the " 23 "number of columns per matrix.");
30 const auto & distribution_names = getParam<std::vector<DistributionName>>(
"distributions");
31 for (
const DistributionName &
name : distribution_names)
65 const auto lower = row * bin_size;
66 const auto upper = (row + 1) * bin_size;
82 const auto lower = row * bin_size;
83 const auto upper = (row + 1) * bin_size;
void setNumberOfRows(dof_id_type n_rows)
LatinHypercubeSampler(const InputParameters ¶meters)
void shuffle(std::vector< T > &data, const std::size_t seed_index=0, const CommMethod method=CommMethod::LOCAL)
std::vector< std::vector< Real > > _probabilities
static InputParameters validParams()
virtual void advanceGenerator(const unsigned int seed_index, const dof_id_type count)
dof_id_type getLocalRowBegin() const
dof_id_type getNumberOfLocalRows() const
Real getRand(unsigned int index=0)
virtual const std::string & name() const
virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override
dof_id_type getLocalRowEnd() const
static InputParameters validParams()
virtual void sampleSetUp(const Sampler::SampleMode mode) override
dof_id_type getNumberOfRows() const
const Distribution & getDistributionByName(const DistributionName &name) const
void setAutoAdvanceGenerators(const bool state)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void setNumberOfCols(dof_id_type n_cols)
registerMooseObjectAliased("StochasticToolsApp", LatinHypercubeSampler, "LatinHypercube")
std::vector< Distribution const * > _distributions
Storage for distribution objects to be utilized.
A class used to perform Monte Carlo Sampling.
dof_id_type getNumberOfCols() const
void setNumberOfRandomSeeds(std::size_t number)