Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
#include "boost/shared_ptr.hpp"
6
11
class
SingleGaussianState1D
{
12
// private:
13
// typedef SingleGaussianState<1> SingleState;
14
15
public
:
16
17
SingleGaussianState1D
() :
18
theWeight
(0.),
theMean
(0.),
theVariance
(0.),
theStandardDeviation
(-1.) {}
19
20
SingleGaussianState1D
(
double
aMean,
21
double
aVariance,
22
double
aWeight = 1.) :
23
theWeight
(aWeight),
theMean
(aMean),
theVariance
(aVariance),
theStandardDeviation
(-1.) {}
24
25
~SingleGaussianState1D
() {}
26
28
inline
double
weight
()
const
{
return
theWeight
;}
30
inline
double
mean
()
const
{
return
theMean
;}
32
inline
double
variance
()
const
{
return
theVariance
;}
34
double
standardDeviation
()
const
{
35
if
(
theStandardDeviation
<0. )
theStandardDeviation
=
sqrt
(
theVariance
);
36
return
theStandardDeviation
;
37
}
38
// /// state
39
// boost::shared_ptr<SingleState> state() {return theState;}
40
41
private
:
42
double
theWeight
;
43
double
theMean
;
44
double
theVariance
;
45
mutable
double
theStandardDeviation
;
46
};
47
48
#endif
SingleGaussianState1D::theStandardDeviation
double theStandardDeviation
Definition:
SingleGaussianState1D.h:45
SingleGaussianState1D::~SingleGaussianState1D
~SingleGaussianState1D()
Definition:
SingleGaussianState1D.h:25
SingleGaussianState1D::standardDeviation
double standardDeviation() const
standardDeviation
Definition:
SingleGaussianState1D.h:34
SingleGaussianState1D::theMean
double theMean
Definition:
SingleGaussianState1D.h:43
SingleGaussianState1D::SingleGaussianState1D
SingleGaussianState1D()
Definition:
SingleGaussianState1D.h:17
SingleGaussianState1D::mean
double mean() const
parameter vector
Definition:
SingleGaussianState1D.h:30
mathSSE::sqrt
T sqrt(T t)
Definition:
SSEVec.h:28
SingleGaussianState1D::variance
double variance() const
variance
Definition:
SingleGaussianState1D.h:32
SingleGaussianState1D::SingleGaussianState1D
SingleGaussianState1D(double aMean, double aVariance, double aWeight=1.)
Definition:
SingleGaussianState1D.h:20
SingleGaussianState.h
SingleGaussianState1D::weight
double weight() const
weight
Definition:
SingleGaussianState1D.h:28
SingleGaussianState1D
Definition:
SingleGaussianState1D.h:11
SingleGaussianState1D::theWeight
double theWeight
Definition:
SingleGaussianState1D.h:42
SingleGaussianState1D::theVariance
double theVariance
Definition:
SingleGaussianState1D.h:44
Generated for CMSSW Reference Manual by
1.8.5