Marlin
01.17.01
|
Small helper class that computes the lower and upper error of sigma assuming a normal distribution, i.e. More...
#include <ErrorOfSigma.h>
Public Member Functions | |
ErrorOfSigma (unsigned n) | |
C'tor takes the number of measured values. More... | |
virtual | ~ErrorOfSigma () |
Virtual d'tor. More... | |
double | lowerError (double sigma) |
The lower error of sigma. More... | |
double | upperError (double sigma) |
The upper error of sigma. More... | |
Protected Member Functions | |
virtual double | getChiSquaredPlus () |
Returns the chisquared value with P(chisquared) == 0.84. More... | |
virtual double | getChiSquaredMinus () |
Returns the chisquared value with P(chisquared) == 0.16. More... | |
Protected Attributes | |
unsigned | _n |
The number of degrees of freedom. More... | |
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.
Definition at line 13 of file ErrorOfSigma.h.
marlin::ErrorOfSigma::ErrorOfSigma | ( | unsigned | n | ) |
C'tor takes the number of measured values.
Definition at line 10 of file ErrorOfSigma.cc.
References std::endl().
|
inlinevirtual |
Virtual d'tor.
Definition at line 22 of file ErrorOfSigma.h.
|
protectedvirtual |
Returns the chisquared value with P(chisquared) == 0.16.
Definition at line 56 of file ErrorOfSigma.cc.
References _n, std::pow(), and std::sqrt().
Referenced by upperError().
|
protectedvirtual |
Returns the chisquared value with P(chisquared) == 0.84.
Definition at line 37 of file ErrorOfSigma.cc.
References _n, std::pow(), and std::sqrt().
Referenced by lowerError().
double marlin::ErrorOfSigma::lowerError | ( | double | sigma | ) |
The lower error of sigma.
Definition at line 24 of file ErrorOfSigma.cc.
References _n, getChiSquaredPlus(), and std::sqrt().
double marlin::ErrorOfSigma::upperError | ( | double | sigma | ) |
The upper error of sigma.
Definition at line 30 of file ErrorOfSigma.cc.
References _n, getChiSquaredMinus(), and std::sqrt().
|
protected |
The number of degrees of freedom.
Definition at line 43 of file ErrorOfSigma.h.
Referenced by getChiSquaredMinus(), getChiSquaredPlus(), lowerError(), and upperError().