|
CMP++: Uncertainty Quantification & Bayesian Calibration
|
Standard Monte Carlo random grid generator. More...
#include <grid.h>


Public Member Functions | |
| MonteCarloGrid (const Eigen::Ref< const Eigen::VectorXd > &lowerBound, const Eigen::Ref< const Eigen::VectorXd > &upperBound, unsigned int seed=42) | |
| Constructs a MonteCarloGrid generator. | |
| Eigen::MatrixXd | construct (const size_t &nPoints) override |
| Constructs a matrix of random Monte Carlo samples. | |
| Eigen::VectorXd | operator() () |
| Evaluates a single random Monte Carlo sample. | |
| size_t | dim () const override |
| Returns the dimension of the domain. | |
Public Member Functions inherited from cmp::grid::Grid | |
| virtual | ~Grid ()=default |
Private Attributes | |
| size_t | dimension_ |
| Number of dimensions. | |
| std::default_random_engine | rng_ |
| Pseudo-random number generator. | |
| std::uniform_real_distribution< double > | dist_ |
| Uniform distribution range [0, 1]. | |
| Eigen::VectorXd | lowerBound_ |
| Lower bounds vector. | |
| Eigen::VectorXd | upperBound_ |
| Upper bounds vector. | |
Standard Monte Carlo random grid generator.
Mathematical Formulation Generates independent and identically distributed (i.i.d.) samples drawn uniformly from the design space:
\[ \mathbf{x}_i \sim \mathcal{U}\left( \prod_{d=1}^D [a_d, b_d] \right) \]
|
inline |
Constructs a MonteCarloGrid generator.
| lowerBound | The lower bounds of the hyperrectangle. |
| upperBound | The upper bounds of the hyperrectangle. |
| seed | Seed for the pseudo-random number generator. |
|
inlineoverridevirtual |
Constructs a matrix of random Monte Carlo samples.
| nPoints | Number of points to generate. |
Implements cmp::grid::Grid.
|
inlineoverridevirtual |
Returns the dimension of the domain.
Implements cmp::grid::Grid.
|
inline |
Evaluates a single random Monte Carlo sample.
|
private |
Number of dimensions.
|
private |
Uniform distribution range [0, 1].
|
private |
Lower bounds vector.
|
private |
Pseudo-random number generator.
|
private |
Upper bounds vector.