CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
SingleGaussianState< N > Class Template Reference

#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 Matrixcovariance () const
 covariance matrix More...
 
unsigned int dimension () const
 size of parameter vector More...
 
const Vectormean () const
 parameter vector More...
 
void rescaleWeight (double scale)
 change weight More...
 
 SingleGaussianState ()
 
 SingleGaussianState (const Vector &aMean, const Matrix &aCovariance, double aWeight=1.)
 
double weight () const
 weight More...
 
const MatrixweightMatrix () const
 weight matrix More...
 
 ~SingleGaussianState ()
 

Private Attributes

Matrix theCovariance
 
bool theHasWeightMatrix
 
Vector theMean
 
double theWeight
 
Matrix theWeightMatrix
 

Detailed Description

template<unsigned int N>
class SingleGaussianState< N >

Multi-dimensional (single) Gaussian state. Used for the description of Gaussian mixtures.

Definition at line 11 of file SingleGaussianState.h.

Member Typedef Documentation

template<unsigned int N>
typedef ROOT::Math::SMatrix<double,N,N,ROOT::Math::MatRepSym<double,N> > SingleGaussianState< N >::Matrix

Definition at line 14 of file SingleGaussianState.h.

template<unsigned int N>
typedef ROOT::Math::SVector<double, N> SingleGaussianState< N >::Vector

Definition at line 13 of file SingleGaussianState.h.

Constructor & Destructor Documentation

template<unsigned int N>
SingleGaussianState< N >::SingleGaussianState ( )
inline

Definition at line 17 of file SingleGaussianState.h.

17  :
18  theHasWeightMatrix(false) {
19 // ++instances_;++maxInstances_;
20  }
template<unsigned int N>
SingleGaussianState< N >::SingleGaussianState ( const Vector aMean,
const Matrix aCovariance,
double  aWeight = 1. 
)
inline

Definition at line 28 of file SingleGaussianState.h.

30  :
31  theCovariance(aCovariance), theMean(aMean), theWeight(aWeight),
32  theHasWeightMatrix(false) {
33 // ++instances_;++maxInstances_;
34  }
template<unsigned int N>
SingleGaussianState< N >::~SingleGaussianState ( )
inline

Definition at line 36 of file SingleGaussianState.h.

36  {
37 // --instances_;
38  }

Member Function Documentation

template<unsigned int N>
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().

54 {return theCovariance;}
template<unsigned int N>
unsigned int SingleGaussianState< N >::dimension ( ) const
inline

size of parameter vector

Definition at line 58 of file SingleGaussianState.h.

References N.

58 {return N;}
#define N
Definition: blowfish.cc:9
template<unsigned int 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().

52 {return theMean;}
template<unsigned int N>
void SingleGaussianState< N >::rescaleWeight ( double  scale)
inline
template<unsigned int N>
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.

50 {return theWeight;}
template<unsigned int N>
const Matrix& SingleGaussianState< N >::weightMatrix ( ) const

weight matrix

Member Data Documentation

template<unsigned int N>
Matrix SingleGaussianState< N >::theCovariance
private

Definition at line 64 of file SingleGaussianState.h.

Referenced by SingleGaussianState< N >::covariance().

template<unsigned int N>
bool SingleGaussianState< N >::theHasWeightMatrix
mutableprivate

Definition at line 69 of file SingleGaussianState.h.

template<unsigned int N>
Vector SingleGaussianState< N >::theMean
private

Definition at line 65 of file SingleGaussianState.h.

Referenced by SingleGaussianState< N >::mean().

template<unsigned int N>
double SingleGaussianState< N >::theWeight
private
template<unsigned int N>
Matrix SingleGaussianState< N >::theWeightMatrix
mutableprivate

Definition at line 68 of file SingleGaussianState.h.