Jpp  17.3.0-rc.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Namespaces | Functions
JFitToolkit.hh File Reference

Auxiliary methods to evaluate Poisson probabilities and chi2. More...

#include <cmath>
#include "JPhysics/JK40Rates.hh"
#include "JMath/JMath.hh"
#include "JMath/JMathSupportkit.hh"
#include "JFit/JVectorNZ.hh"
#include "JFit/JMatrixNZ.hh"

Go to the source code of this file.

Namespaces

 JFIT
 Auxiliary classes and methods for linear and iterative data regression.
 
 JPP
 This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 

Functions

double JFIT::getP (const double expval, bool hit)
 Get Poisson probability to observe a hit or not for given expectation value for the number of hits. More...
 
double JFIT::getChi2 (const double P)
 Get chi2 corresponding to given probability. More...
 
double JFIT::getChi2 (const double expval, bool hit)
 Get chi2 to observe a hit or not for given expectation value for the number of hits. More...
 
template<class JModel_t , class JHit_t >
double JFIT::getChi2 (const JModel_t &model, const JHit_t &hit, const double sigma)
 Determine chi2 of a hit for a given model and time resolution. More...
 
template<class JModel_t , class T >
double JFIT::getChi2 (const JModel_t &model, T __begin, T __end, const double sigma)
 Determine chi2 of data for given model and time resolution. More...
 
double JFIT::getChi2 (const JVectorNZ &Y, const JMatrixNZ &V)
 Determine chi2 using full covariance matrix. More...
 
template<class T >
double JFIT::getChi2 (const JLine1Z &track, T __begin, T __end, const JMatrixNZ &V)
 Determine chi2 of data for given track using full covariance matrix. More...
 
template<class T >
double JFIT::getChi2 (const JLine1Z &track, T __begin, T __end, const double alpha, const double sigma)
 Determine chi2 of data for given track and angular and time resolution. More...
 
double JFIT::getChi2 (const JVectorNZ &Y, const JMatrixNZ &V, const int i)
 Determine difference between chi2 with and without hit using full covariance matrix. More...
 
template<class JModel_t , class JFit_t , class T >
double JFIT::getChi2 (const JModel_t &model, const JFit_t &fit, T __begin, T __end)
 Get chi2 of data for given model and fit function. More...
 
double JFIT::getProbability (const size_t N, const size_t M, const JK40Rates &R_Hz, const double T_ns)
 Get probability due to random background. More...
 

Detailed Description

Auxiliary methods to evaluate Poisson probabilities and chi2.

Author
mdejong

Definition in file JFitToolkit.hh.