Main Page
Namespaces
Classes
Package Documentation
src
TrackingTools
GsfTools
interface
SingleGaussianState1D.h
Go to the documentation of this file.
1
#ifndef SingleGaussianState1D_H
2
#define SingleGaussianState1D_H
3
4
#include "
TrackingTools/GsfTools/interface/SingleGaussianState.h
"
5
10
class
SingleGaussianState1D
{
11
// private:
12
// typedef SingleGaussianState<1> SingleState;
13
14
public
:
15
16
SingleGaussianState1D
() :
17
theWeight
(0.),
theMean
(0.),
theVariance
(0.),
theStandardDeviation
(-1.) {}
18
19
SingleGaussianState1D
(
double
aMean,
20
double
aVariance,
21
double
aWeight = 1.) :
22
theWeight
(aWeight),
theMean
(aMean),
theVariance
(aVariance),
theStandardDeviation
(-1.) {}
23
24
~SingleGaussianState1D
() {}
25
27
inline
double
weight
()
const
{
return
theWeight
;}
29
inline
double
mean
()
const
{
return
theMean
;}
31
inline
double
variance
()
const
{
return
theVariance
;}
33
double
standardDeviation
()
const
{
34
if
(
theStandardDeviation
<0. )
theStandardDeviation
=
sqrt
(
theVariance
);
35
return
theStandardDeviation
;
36
}
37
// /// state
38
// std::shared_ptr<SingleState> state() {return theState;}
39
40
private
:
41
double
theWeight
;
42
double
theMean
;
43
double
theVariance
;
44
mutable
double
theStandardDeviation
;
45
};
46
47
#endif
SingleGaussianState1D::theStandardDeviation
double theStandardDeviation
Definition:
SingleGaussianState1D.h:44
SingleGaussianState1D::~SingleGaussianState1D
~SingleGaussianState1D()
Definition:
SingleGaussianState1D.h:24
SingleGaussianState1D::standardDeviation
double standardDeviation() const
standardDeviation
Definition:
SingleGaussianState1D.h:33
SingleGaussianState1D::theMean
double theMean
Definition:
SingleGaussianState1D.h:42
SingleGaussianState1D::SingleGaussianState1D
SingleGaussianState1D()
Definition:
SingleGaussianState1D.h:16
SingleGaussianState1D::mean
double mean() const
parameter vector
Definition:
SingleGaussianState1D.h:29
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:18
SingleGaussianState1D::variance
double variance() const
variance
Definition:
SingleGaussianState1D.h:31
SingleGaussianState1D::SingleGaussianState1D
SingleGaussianState1D(double aMean, double aVariance, double aWeight=1.)
Definition:
SingleGaussianState1D.h:19
SingleGaussianState.h
SingleGaussianState1D::weight
double weight() const
weight
Definition:
SingleGaussianState1D.h:27
SingleGaussianState1D
Definition:
SingleGaussianState1D.h:10
SingleGaussianState1D::theWeight
double theWeight
Definition:
SingleGaussianState1D.h:41
SingleGaussianState1D::theVariance
double theVariance
Definition:
SingleGaussianState1D.h:43
Generated for CMSSW Reference Manual by
1.8.11