queso-0.57.1
|
Class defining infinite dimensional Gaussian measures. More...
#include <InfiniteDimensionalGaussian.h>
Public Member Functions | |
virtual SharedPtr < FunctionBase >::Type | draw () |
Draw from the measure, and then return a shared pointer to the draw. More... | |
virtual double | get_kl_coefficient (unsigned int i) const |
Return coefficient i of the KL expansion of the current draw. Must be called after draw() More... | |
Constructor/Destructor methods | |
InfiniteDimensionalGaussian (const FullEnvironment &env, const FunctionBase &mean, const OperatorBase &precision, double alpha, double beta) | |
Construct a Gaussian with mean mean , precision operator precision . alpha controls regularity of draws and beta^2 is a multiplicative coefficient of precision . More... | |
~InfiniteDimensionalGaussian () | |
Destructor. More... | |
Public Member Functions inherited from QUESO::InfiniteDimensionalMeasureBase | |
InfiniteDimensionalMeasureBase () | |
Default constructor. More... | |
virtual | ~InfiniteDimensionalMeasureBase () |
Destructor. More... | |
Private Attributes | |
const FunctionBase & | mean |
const OperatorBase & | precision |
const FullEnvironment & | env |
double | alpha |
double | beta |
std::vector< double > | coeffs |
Class defining infinite dimensional Gaussian measures.
Definition at line 45 of file InfiniteDimensionalGaussian.h.
QUESO::InfiniteDimensionalGaussian::InfiniteDimensionalGaussian | ( | const FullEnvironment & | env, |
const FunctionBase & | mean, | ||
const OperatorBase & | precision, | ||
double | alpha, | ||
double | beta | ||
) |
Construct a Gaussian with mean mean
, precision operator precision
. alpha
controls regularity of draws and beta^2
is a multiplicative coefficient of precision
.
The argument alpha
refers to the power to which the precision
will be taken. And beta
is the multiplicative coefficient of preicision
. The complete measure is therefore:
N(mean
, beta^2
* pow
(precision
, alpha
))
It is expected that mean
and precision
will live longer than this
Definition at line 38 of file InfiniteDimensionalGaussian.C.
References coeffs, and QUESO::OperatorBase::get_num_converged().
QUESO::InfiniteDimensionalGaussian::~InfiniteDimensionalGaussian | ( | ) |
|
virtual |
Draw from the measure, and then return a shared pointer to the draw.
Implements QUESO::InfiniteDimensionalMeasureBase.
Definition at line 58 of file InfiniteDimensionalGaussian.C.
References beta, coeffs, env, QUESO::RngBase::gaussianSample(), QUESO::OperatorBase::get_num_converged(), QUESO::OperatorBase::inverse_kl_transform(), mean, precision, and QUESO::BaseEnvironment::rngObject().
|
virtual |
Return coefficient i
of the KL expansion of the current draw. Must be called after draw()
Implements QUESO::InfiniteDimensionalMeasureBase.
Definition at line 74 of file InfiniteDimensionalGaussian.C.
References alpha, coeffs, QUESO::OperatorBase::get_eigenvalue(), and precision.
|
private |
Definition at line 84 of file InfiniteDimensionalGaussian.h.
Referenced by get_kl_coefficient().
|
private |
Definition at line 87 of file InfiniteDimensionalGaussian.h.
Referenced by draw().
|
private |
Definition at line 91 of file InfiniteDimensionalGaussian.h.
Referenced by draw(), get_kl_coefficient(), and InfiniteDimensionalGaussian().
|
private |
Definition at line 81 of file InfiniteDimensionalGaussian.h.
Referenced by draw().
|
private |
Definition at line 75 of file InfiniteDimensionalGaussian.h.
Referenced by draw().
|
private |
Definition at line 78 of file InfiniteDimensionalGaussian.h.
Referenced by draw(), and get_kl_coefficient().