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
SingleGaussianState1D
() :
theWeight
(0.),
theMean
(0.),
theVariance
(0.),
theStandardDeviation
(-1.) {}
16
17
SingleGaussianState1D
(
double
aMean,
double
aVariance,
double
aWeight = 1.)
18
:
theWeight
(aWeight),
theMean
(aMean),
theVariance
(aVariance),
theStandardDeviation
(-1.) {}
19
20
~SingleGaussianState1D
() {}
21
23
inline
double
weight
()
const
{
return
theWeight
; }
25
inline
double
mean
()
const
{
return
theMean
; }
27
inline
double
variance
()
const
{
return
theVariance
; }
29
double
standardDeviation
()
const
{
30
if
(
theStandardDeviation
< 0.)
31
theStandardDeviation
=
sqrt
(
theVariance
);
32
return
theStandardDeviation
;
33
}
34
// /// state
35
// std::shared_ptr<SingleState> state() {return theState;}
36
37
private
:
38
double
theWeight
;
39
double
theMean
;
40
double
theVariance
;
41
mutable
double
theStandardDeviation
;
42
};
43
44
#endif
SingleGaussianState1D::theStandardDeviation
double theStandardDeviation
Definition:
SingleGaussianState1D.h:41
SingleGaussianState1D::~SingleGaussianState1D
~SingleGaussianState1D()
Definition:
SingleGaussianState1D.h:20
SingleGaussianState1D::theMean
double theMean
Definition:
SingleGaussianState1D.h:39
SingleGaussianState1D::SingleGaussianState1D
SingleGaussianState1D()
Definition:
SingleGaussianState1D.h:15
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:19
SingleGaussianState1D::standardDeviation
double standardDeviation() const
standardDeviation
Definition:
SingleGaussianState1D.h:29
SingleGaussianState1D::SingleGaussianState1D
SingleGaussianState1D(double aMean, double aVariance, double aWeight=1.)
Definition:
SingleGaussianState1D.h:17
SingleGaussianState1D::mean
double mean() const
parameter vector
Definition:
SingleGaussianState1D.h:25
SingleGaussianState1D::weight
double weight() const
weight
Definition:
SingleGaussianState1D.h:23
SingleGaussianState.h
SingleGaussianState1D
Definition:
SingleGaussianState1D.h:10
SingleGaussianState1D::theWeight
double theWeight
Definition:
SingleGaussianState1D.h:38
SingleGaussianState1D::variance
double variance() const
variance
Definition:
SingleGaussianState1D.h:27
SingleGaussianState1D::theVariance
double theVariance
Definition:
SingleGaussianState1D.h:40
Generated for CMSSW Reference Manual by
1.8.14