24 params.
addRequiredParam<dof_id_type>(
"num_rows",
"The number of rows per matrix to generate.");
27 "The distribution names to be sampled, the number of distributions provided defines the "
28 "number of columns per matrix.");
34 _distribution_names(getParam<
std::vector<DistributionName>>(
"distributions"))
registerMooseObjectReplaced("StochasticToolsApp", MonteCarloSampler, "07/01/2020 00:00", MonteCarlo)
registerMooseObjectAliased("StochasticToolsApp", MonteCarloSampler, "MonteCarlo")
const Distribution & getDistributionByName(const DistributionName &name) const
A class used to perform Monte Carlo Sampling.
std::vector< Distribution const * > _distributions
Storage for distribution objects to be utilized.
virtual Real computeSample(dof_id_type row_index, dof_id_type col_index) override
Return the sample for the given row and column.
const std::vector< DistributionName > & _distribution_names
Distribution names.
static InputParameters validParams()
MonteCarloSampler(const InputParameters ¶meters)
const std::string & name() const
void setNumberOfCols(dof_id_type n_cols)
Real getRand(std::size_t n, unsigned int index=0) const
static InputParameters validParams()
dof_id_type getNumberOfCols() const
void setNumberOfRows(dof_id_type n_rows)