#include <RandomMultiGauss.h>
Public Member Functions | |
AlgebraicVector | fire () |
RandomMultiGauss (const AlgebraicSymMatrix &aMatrix) | |
RandomMultiGauss (const AlgebraicVector &aVector, 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 24 of file RandomMultiGauss.cc.
References initialise().
|
inline |
Definition at line 23 of file RandomMultiGauss.h.
AlgebraicVector RandomMultiGauss::fire | ( | ) |
Generation of a vector of random numbers.
Definition at line 71 of file RandomMultiGauss.cc.
References mps_fire::i, theMeans, theSize, and theTriangle.
|
private |
generation of the cholesky decomposition
Definition at line 32 of file RandomMultiGauss.cc.
References testProducerWithPsetDescEmpty_cfi::i1, testProducerWithPsetDescEmpty_cfi::i2, testProducerWithPsetDescEmpty_cfi::i3, mathSSE::sqrt(), theSize, and theTriangle.
Referenced by 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().