Exemplo n.º 1
0
SobolSampler::SobolSampler(const InputParameters & parameters)
  : Sampler(parameters),
    _num_samples(getParam<unsigned int>("n_samples")),
    _a_matrix(0, 0),
    _b_matrix(0, 0)
{
  setNumberOfRequiedRandomSeeds(2);
}
Exemplo n.º 2
0
Sampler::Sampler(const InputParameters & parameters)
  : MooseObject(parameters),
    SetupInterface(this),
    DistributionInterface(this),
    _distribution_names(getParam<std::vector<DistributionName>>("distributions")),
    _seed(getParam<unsigned int>("seed")),
    _total_rows(0)
{
  for (const DistributionName & name : _distribution_names)
    _distributions.push_back(&getDistributionByName(name));
  setNumberOfRequiedRandomSeeds(1);
}