#include <RandomMultiGauss.h>
Public Member Functions | |
AlgebraicVector | fire () |
RandomMultiGauss (const AlgebraicVector &aVector, const AlgebraicSymMatrix &aMatrix) | |
RandomMultiGauss (const AlgebraicSymMatrix &aMatrix) | |
~RandomMultiGauss () | |
Private Member Functions | |
void | initialise (const AlgebraicSymMatrix &) |
Private Attributes | |
AlgebraicVector | theMeans |
int | theSize |
AlgebraicMatrix | theTriangle |
Vector of random numbers according to covariance matrix. Generates vectors of random numbers given a vector of mean values (optional) and a covariance matrix. Will accept empty rows/columns in the input matrix. Uses CLHEP::RandGauss with default engine for generation.
Definition at line 14 of file RandomMultiGauss.h.
RandomMultiGauss::RandomMultiGauss | ( | const AlgebraicVector & | aVector, |
const AlgebraicSymMatrix & | aMatrix | ||
) |
constructor with explicit vector of mean values
Definition at line 9 of file RandomMultiGauss.cc.
References initialise(), theMeans, and theSize.
RandomMultiGauss::RandomMultiGauss | ( | const AlgebraicSymMatrix & | aMatrix | ) |
constructor with covariance matrix only (all means = 0)
Definition at line 27 of file RandomMultiGauss.cc.
References initialise().
|
inline |
AlgebraicVector RandomMultiGauss::fire | ( | ) |
Generation of a vector of random numbers.
Definition at line 74 of file RandomMultiGauss.cc.
References i, theMeans, theSize, and theTriangle.
Referenced by ~RandomMultiGauss().
|
private |
generation of the cholesky decomposition
Definition at line 37 of file RandomMultiGauss.cc.
References mathSSE::sqrt(), theSize, and theTriangle.
Referenced by RandomMultiGauss(), and ~RandomMultiGauss().
|
private |
Definition at line 35 of file RandomMultiGauss.h.
Referenced by fire(), and RandomMultiGauss().
|
private |
Definition at line 34 of file RandomMultiGauss.h.
Referenced by fire(), initialise(), and RandomMultiGauss().
|
private |
Definition at line 36 of file RandomMultiGauss.h.
Referenced by fire(), and initialise().