#include <SingleGaussianState.h>
Public Types | |
typedef ROOT::Math::SMatrix < double, N, N, ROOT::Math::MatRepSym< double, N > > | Matrix |
typedef ROOT::Math::SVector < double, N > | Vector |
Public Member Functions | |
const Matrix & | covariance () const |
covariance matrix | |
unsigned int | dimension () const |
size of parameter vector | |
const Vector & | mean () const |
parameter vector | |
void | rescaleWeight (double scale) |
change weight | |
SingleGaussianState () | |
SingleGaussianState (const Vector &aMean, const Matrix &aCovariance, double aWeight=1.) | |
double | weight () const |
weight | |
const Matrix & | weightMatrix () const |
weight matrix | |
~SingleGaussianState () | |
Private Attributes | |
Matrix | theCovariance |
bool | theHasWeightMatrix |
Vector | theMean |
double | theWeight |
Matrix | theWeightMatrix |
Multi-dimensional (single) Gaussian state. Used for the description of Gaussian mixtures.
Definition at line 11 of file SingleGaussianState.h.
typedef ROOT::Math::SMatrix<double,N,N,ROOT::Math::MatRepSym<double,N> > SingleGaussianState< N >::Matrix |
Definition at line 14 of file SingleGaussianState.h.
typedef ROOT::Math::SVector<double, N> SingleGaussianState< N >::Vector |
Definition at line 13 of file SingleGaussianState.h.
SingleGaussianState< N >::SingleGaussianState | ( | ) | [inline] |
Definition at line 17 of file SingleGaussianState.h.
: theHasWeightMatrix(false) { // ++instances_;++maxInstances_; }
SingleGaussianState< N >::SingleGaussianState | ( | const Vector & | aMean, |
const Matrix & | aCovariance, | ||
double | aWeight = 1. |
||
) | [inline] |
Definition at line 28 of file SingleGaussianState.h.
: theCovariance(aCovariance), theMean(aMean), theWeight(aWeight), theHasWeightMatrix(false) { // ++instances_;++maxInstances_; }
SingleGaussianState< N >::~SingleGaussianState | ( | ) | [inline] |
Definition at line 36 of file SingleGaussianState.h.
{
// --instances_;
}
const Matrix& SingleGaussianState< N >::covariance | ( | void | ) | const [inline] |
covariance matrix
Definition at line 54 of file SingleGaussianState.h.
References SingleGaussianState< N >::theCovariance.
Referenced by MultiGaussianStateTransform::tsosFromSingleState().
{return theCovariance;}
unsigned int SingleGaussianState< N >::dimension | ( | ) | const [inline] |
size of parameter vector
Definition at line 58 of file SingleGaussianState.h.
References N.
{return N;}
const Vector& SingleGaussianState< N >::mean | ( | ) | const [inline] |
parameter vector
Definition at line 52 of file SingleGaussianState.h.
References SingleGaussianState< N >::theMean.
Referenced by MultiGaussianStateTransform::tsosFromSingleState().
{return theMean;}
void SingleGaussianState< N >::rescaleWeight | ( | double | scale | ) | [inline] |
change weight
Definition at line 60 of file SingleGaussianState.h.
References pileupReCalc_HLTpaths::scale, and SingleGaussianState< N >::theWeight.
double SingleGaussianState< N >::weight | ( | void | ) | const [inline] |
weight
Creates a new single-state with the given information. For this base class, no information is passed from the initial instance.
Definition at line 50 of file SingleGaussianState.h.
References SingleGaussianState< N >::theWeight.
{return theWeight;}
const Matrix& SingleGaussianState< N >::weightMatrix | ( | ) | const |
weight matrix
Matrix SingleGaussianState< N >::theCovariance [private] |
Definition at line 64 of file SingleGaussianState.h.
Referenced by SingleGaussianState< N >::covariance().
bool SingleGaussianState< N >::theHasWeightMatrix [mutable, private] |
Definition at line 69 of file SingleGaussianState.h.
Vector SingleGaussianState< N >::theMean [private] |
Definition at line 65 of file SingleGaussianState.h.
Referenced by SingleGaussianState< N >::mean().
double SingleGaussianState< N >::theWeight [private] |
Definition at line 66 of file SingleGaussianState.h.
Referenced by SingleGaussianState< N >::rescaleWeight(), and SingleGaussianState< N >::weight().
Matrix SingleGaussianState< N >::theWeightMatrix [mutable, private] |
Definition at line 68 of file SingleGaussianState.h.