#include <TrackingTools/GsfTools/interface/MultiGaussianState.h>
Public Types | |
typedef SingleGaussianState< N > ::Matrix | Matrix |
typedef SingleGaussianState< N > | SingleState |
typedef std::vector < SingleStatePtr > | SingleStateContainer |
typedef boost::shared_ptr < SingleState > | SingleStatePtr |
typedef SingleGaussianState< N > ::Vector | Vector |
Public Member Functions | |
const SingleStateContainer & | components () const |
access to components (single Gaussian states) | |
const Matrix & | covariance () const |
combined covariance matrix | |
int | dimension () const |
dimension of parameter vector | |
const Vector & | mean () const |
combined mean | |
MultiGaussianState (const SingleStateContainer &stateV) | |
MultiGaussianState () | |
void | rescaleWeight (double scale) |
rescale weight | |
void | setWeight (double newWeight) |
renormalize weight | |
double | weight () const |
Creates a new multi-state with the given components. | |
const Matrix & | weightMatrix () const |
combined weight matrix | |
~MultiGaussianState () | |
Private Member Functions | |
void | checkCombinedState () const |
calculation of the combined state (on demand) | |
Private Attributes | |
SingleStatePtr | theCombinedState |
bool | theCombinedStateUp2Date |
const SingleStateContainer | theComponents |
Multi-dimensional multi-Gaussian mixture: weighted sum of single Gaussian components.
Definition at line 18 of file MultiGaussianState.h.
typedef SingleGaussianState<N>::Matrix MultiGaussianState< N >::Matrix |
Definition at line 21 of file MultiGaussianState.h.
typedef SingleGaussianState<N> MultiGaussianState< N >::SingleState |
Definition at line 22 of file MultiGaussianState.h.
typedef std::vector< SingleStatePtr > MultiGaussianState< N >::SingleStateContainer |
Definition at line 25 of file MultiGaussianState.h.
typedef boost::shared_ptr<SingleState> MultiGaussianState< N >::SingleStatePtr |
Definition at line 23 of file MultiGaussianState.h.
typedef SingleGaussianState<N>::Vector MultiGaussianState< N >::Vector |
Definition at line 20 of file MultiGaussianState.h.
MultiGaussianState< N >::MultiGaussianState | ( | ) | [inline] |
Definition at line 29 of file MultiGaussianState.h.
00029 : theCombinedStateUp2Date(false) { 00030 // ++instances_;++maxInstances_; 00031 // std::cout << "MultiGaussianState() " << N << " " << instances_ << std::endl; 00032 }
MultiGaussianState< N >::MultiGaussianState | ( | const SingleStateContainer & | stateV | ) | [inline] |
Definition at line 34 of file MultiGaussianState.h.
00035 : theComponents(stateV), theCombinedStateUp2Date(false) { 00036 // theComponents[0]->rescaleWeight(1.); 00037 // ++instances_;++maxInstances_; 00038 // std::cout << "MultiGaussianState(const SingleStateContainer&) " << N << " " 00039 // << instances_ << std::endl; 00040 }
MultiGaussianState< N >::~MultiGaussianState | ( | ) | [inline] |
Definition at line 50 of file MultiGaussianState.h.
00050 { 00051 // --instances_; 00052 // std::cout << "~MultiGaussianState " << N << " " << instances_ << std::endl; 00053 }
void MultiGaussianState< N >::checkCombinedState | ( | ) | const [private] |
calculation of the combined state (on demand)
const SingleStateContainer& MultiGaussianState< N >::components | ( | ) | const [inline] |
access to components (single Gaussian states)
Definition at line 85 of file MultiGaussianState.h.
References MultiGaussianState< N >::theComponents.
Referenced by GaussianSumUtilities< N >::components(), GaussianStateConversions::tsosFromMultiGaussianState(), and GaussianStateConversions::vertexFromMultiGaussianState().
00085 {return theComponents;}
const Matrix& MultiGaussianState< N >::covariance | ( | ) | const |
int MultiGaussianState< N >::dimension | ( | ) | const [inline] |
dimension of parameter vector
Definition at line 87 of file MultiGaussianState.h.
References N.
00087 { 00088 return N; 00089 }
const Vector& MultiGaussianState< N >::mean | ( | ) | const |
void MultiGaussianState< N >::rescaleWeight | ( | double | scale | ) |
rescale weight
void MultiGaussianState< N >::setWeight | ( | double | newWeight | ) |
renormalize weight
double MultiGaussianState< N >::weight | ( | ) | const |
Creates a new multi-state with the given components.
For this base class, no information is passed from the initial instance. Creates a new single-state with the given information. For this base class, no information is passed from the initial instance. combined weight
Referenced by GaussianSumUtilities< N >::weight().
const Matrix& MultiGaussianState< N >::weightMatrix | ( | ) | const |
combined weight matrix
SingleStatePtr MultiGaussianState< N >::theCombinedState [mutable, private] |
Definition at line 103 of file MultiGaussianState.h.
bool MultiGaussianState< N >::theCombinedStateUp2Date [mutable, private] |
Definition at line 104 of file MultiGaussianState.h.
const SingleStateContainer MultiGaussianState< N >::theComponents [private] |
Definition at line 102 of file MultiGaussianState.h.
Referenced by MultiGaussianState< N >::components().