CMS 3D CMS Logo

MultiGaussianState1D.cc
Go to the documentation of this file.
3 // #include "TrackingTools/GsfTools/interface/MultiGaussianState.h"
4 
7  return theCombinedState.weight();
8 
9  double result(0.);
10  for (SingleState1dContainer::const_iterator ic = theComponents.begin(); ic != theComponents.end(); ic++)
11  result += (*ic).weight();
12  return result;
13 }
14 
17  return theCombinedState.mean();
18 }
19 
22  return theCombinedState.variance();
23 }
24 
27  return;
28 
31 
32  // typedef SingleGaussianState<1> SingleState;
33  // typedef std::shared_ptr< SingleGaussianState<1> > SingleStatePtr;
34  // typedef std::vector< SingleStatePtr > SingleStateContainer;
35 
36  // SingleStateContainer components;
37  // for ( SingleState1dContainer::const_iterator ic=theComponents.begin();
38  // ic!=theComponents.end(); ic++ ) {
39  // SingleStatePtr ssp(new SingleState(SingleState::Vector((*ic).mean()),
40  // SingleState::Matrix((*ic).variance()),
41  // (*ic).weight()));
42  // components.push_back(ssp);
43  // }
44  // MultiGaussianState<1> multiState(components);
45 
46  // theCombinedState = SingleGaussianState1D(multiState.mean()(0),
47  // multiState.covariance()(0,0),
48  // multiState.weight());
49 
51 }
double weight() const
combined weight
SingleGaussianState1D theCombinedState
double mean() const
combined mean
const SingleState1dContainer theComponents
double variance() const
combined variance
double mean() const
parameter vector
double weight() const
weight
double variance() const
variance
void checkCombinedState() const
calculation of the combined state (on demand)