A class used to perform Monte Carlo Sampling.
More...
#include <SobolSampler.h>
A class used to perform Monte Carlo Sampling.
Definition at line 21 of file SobolSampler.h.
◆ SobolSampler()
SobolSampler::SobolSampler |
( |
const InputParameters & |
parameters | ) |
|
Definition at line 30 of file SobolSampler.C.
31 : Sampler(parameters),
37 setNumberOfRandomSeeds(2);
◆ computeSample()
Real SobolSampler::computeSample |
( |
dof_id_type |
row_index, |
|
|
dof_id_type |
col_index |
|
) |
| |
|
overrideprotectedvirtual |
Definition at line 60 of file SobolSampler.C.
65 if (matrix_index == 0)
67 else if (matrix_index == 1)
69 else if (col_index == matrix_index - 2)
◆ sampleSetUp()
void SobolSampler::sampleSetUp |
( |
| ) |
|
|
overrideprotectedvirtual |
Definition at line 47 of file SobolSampler.C.
52 for (dof_id_type j = 0; j < getNumberOfCols(); ++j)
◆ sampleTearDown()
void SobolSampler::sampleTearDown |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ validParams()
InputParameters SobolSampler::validParams |
( |
| ) |
|
|
static |
Definition at line 18 of file SobolSampler.C.
21 params.addClassDescription(
"Sobol variance-based sensitivity analysis Sampler.");
22 params.addRequiredParam<dof_id_type>(
"num_rows",
"The number of rows per matrix to generate.");
23 params.addRequiredParam<std::vector<DistributionName>>(
25 "The distribution names to be sampled, the number of distributions provided defines the "
26 "number of columns per matrix.");
◆ _a_matrix
DenseMatrix<Real> SobolSampler::_a_matrix |
|
protected |
◆ _b_matrix
DenseMatrix<Real> SobolSampler::_b_matrix |
|
protected |
◆ _distribution_names
const std::vector<DistributionName>& SobolSampler::_distribution_names |
|
protected |
◆ _distributions
std::vector<Distribution const *> SobolSampler::_distributions |
|
protected |
◆ _num_rows_per_matrix
const dof_id_type SobolSampler::_num_rows_per_matrix |
|
protected |
The documentation for this class was generated from the following files: