Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

marlin::ErrorOfSigma Class Reference

#include <ErrorOfSigma.h>

List of all members.

Public Member Functions

 ErrorOfSigma (unsigned n)
virtual ~ErrorOfSigma ()
double lowerError (double sigma)
double upperError (double sigma)

Protected Member Functions

virtual double getChiSquaredPlus ()
virtual double getChiSquaredMinus ()

Protected Attributes

unsigned _n


Detailed Description

Small helper class that computes the lower and upper error of sigma assuming a normal distribution, i.e. sigma has been computed as sigma = 1. / (n-1) * SUM_i_n( x_i - a_i )**2.

Author:
F. Gaede, DESY
Version:
Id
ErrorOfSigma.h,v 1.2 2005/10/11 12:56:28 gaede Exp

Definition at line 13 of file ErrorOfSigma.h.


Constructor & Destructor Documentation

marlin::ErrorOfSigma::ErrorOfSigma unsigned  n  ) 
 

C'tor takes the number of measured values.

Definition at line 7 of file ErrorOfSigma.cc.

virtual marlin::ErrorOfSigma::~ErrorOfSigma  )  [inline, virtual]
 

Virtual d'tor.

Definition at line 22 of file ErrorOfSigma.h.


Member Function Documentation

double marlin::ErrorOfSigma::getChiSquaredMinus  )  [protected, virtual]
 

Returns the chisquared value with P(chisquared) == 0.16

Definition at line 53 of file ErrorOfSigma.cc.

References _n.

Referenced by upperError().

double marlin::ErrorOfSigma::getChiSquaredPlus  )  [protected, virtual]
 

Returns the chisquared value with P(chisquared) == 0.84

Definition at line 34 of file ErrorOfSigma.cc.

References _n.

Referenced by lowerError().

double marlin::ErrorOfSigma::lowerError double  sigma  ) 
 

The lower error of sigma

Definition at line 21 of file ErrorOfSigma.cc.

References _n, and getChiSquaredPlus().

double marlin::ErrorOfSigma::upperError double  sigma  ) 
 

The upper error of sigma

Definition at line 27 of file ErrorOfSigma.cc.

References _n, and getChiSquaredMinus().


Member Data Documentation

unsigned marlin::ErrorOfSigma::_n [protected]
 

The number of degrees of freedom

Definition at line 43 of file ErrorOfSigma.h.

Referenced by getChiSquaredMinus(), getChiSquaredPlus(), lowerError(), and upperError().


The documentation for this class was generated from the following files:
Generated on Sun Jun 3 06:32:30 2007 for A TPC Tracking Environment by  doxygen 1.3.9.1