|
| class | JEnergy |
| | Data structure for fit of energy. More...
|
| |
| struct | JRegressor< JEnergy > |
| | Regressor function object for JEnergy fit. More...
|
| |
| struct | JEstimator |
| | Template definition of linear fit. More...
|
| |
| class | JGandalf |
| | Fit method based on the Levenberg-Marquardt method. More...
|
| |
| struct | JK40 |
| | Auxiliary class for converting various rates to expectation values of the number of hits within a given time interval. More...
|
| |
| struct | JK40Hit |
| | Auxiliary class for simultaneously handling light yields and response of module. More...
|
| |
| class | JEstimator< JLegendre< JOrdinate_t, N > > |
| | Linear fit of Legendre polynomial. More...
|
| |
| class | JLine1Z |
| | Data structure for fit of straight line paralel to z-axis. More...
|
| |
| class | JEstimator< JLine1Z > |
| | Linear fit of straight line parallel to z-axis to set of hits (objects with position and time). More...
|
| |
| class | JLine3EZ |
| | Data structure for fit of straight line in positive z-direction with energy. More...
|
| |
| class | JLine3Z |
| | Data structure for fit of straight line in positive z-direction. More...
|
| |
| struct | JRegressor< JLine3Z, JSimplex > |
| | Regressor function object for JLine3Z fit using JSimplex minimiser. More...
|
| |
| struct | JRegressor< JLine3Z, JGandalf > |
| | Regressor function object for JLine3Z fit using JGandalf minimiser. More...
|
| |
| class | JMatrixNZ |
| | Determination of the co-variance matrix of hits for a track along z-axis (JFIT::JLine1Z). More...
|
| |
| struct | JMEstimator |
| | Interface for maximum likelihood estimator (M-estimator). More...
|
| |
| struct | JMEstimatorNull |
| | Null M-estimator. More...
|
| |
| struct | JMEstimatorNormal |
| | Normal M-estimator. More...
|
| |
| struct | JMEstimatorLorentzian |
| | Lorentzian M-estimator. More...
|
| |
| struct | JMEstimatorLinear |
| | Linear M-estimator. More...
|
| |
| struct | JMEstimatorTukey |
| | Tukey's biweight M-estimator. More...
|
| |
| struct | JModel |
| | Auxiliary class to match data points with given model. More...
|
| |
| struct | JModel< JLine1Z > |
| | Template specialisation of class JModel to match hit with muon trajectory along z-axis. More...
|
| |
| struct | JModel< JEnergy > |
| | Template specialisation of class JModel to match hit with muon energy. More...
|
| |
| struct | JModel< JPoint4D > |
| | Template specialisation of class JModel to match hit with bright point. More...
|
| |
| struct | JNPE |
| | Auxiliary class for handling various light yields. More...
|
| |
| struct | JNPEHit |
| | Auxiliary class for simultaneously handling light yields and response of PMT. More...
|
| |
| struct | JPMTW0 |
| | Auxiliary class for handling PMT geometry, rate and response. More...
|
| |
| class | JPoint3D |
| | Data structure for position fit. More...
|
| |
| class | JEstimator< JPoint3D > |
| | Linear fit of crossing point (position) between axes (objects with position and direction). More...
|
| |
| class | JPoint4D |
| | Data structure for vertex fit. More...
|
| |
| class | JEstimator< JPoint4D > |
| | Linear fit of bright point (position and time) between hits (objects with position and time). More...
|
| |
| struct | JRegressor< JPoint4D, JSimplex > |
| | Regressor function object for JPoint4D fit using JSimplex minimiser. More...
|
| |
| struct | JAbstractMinimiser |
| | Abstract minimiser. More...
|
| |
| struct | JRegressor |
| | Template definition of a data regressor of given model. More...
|
| |
| struct | JAbstractRegressor |
| | Abstract class for global fit method. More...
|
| |
| class | JShower3EZ |
| | Data structure for fit of straight line in positive z-direction with energy. More...
|
| |
| struct | JRegressor< JShower3EZ, JSimplex > |
| | Regressor function object for JShower3EZ fit using JSimplex minimiser. More...
|
| |
| struct | JRegressor< JShower3EZ, JGandalf > |
| | Regressor function object for JShower3EZ fit using JGandalf minimiser. More...
|
| |
| class | JShower3Z |
| | Data structure for cascade in positive z-direction. More...
|
| |
| struct | JRegressor< JShowerEH, JSimplex > |
| | Regressor function object for JShowerEH fit using JSimplex minimiser. More...
|
| |
| struct | JRegressor< JPoint4D, JGandalf > |
| | Regressor function object for JPoint4D fit using JGandalf minimiser. More...
|
| |
| class | JShowerEH |
| | Data structure for fit of straight line in positive z-direction with energy. More...
|
| |
| struct | JRegressor< JEnergy, JSimplex > |
| | Regressor function object for JShower3EZ fit using JSimplex minimiser. More...
|
| |
| struct | JShowerNPE |
| | Auxiliary class for handling EM shower light yield. More...
|
| |
| struct | JShowerNPEHit |
| | Auxiliary class for simultaneously handling light yields and response of PMT. More...
|
| |
| class | JSimplex |
| | Simple fit method based on Powell's algorithm, see reference: Numerical Recipes in C++, W.H. More...
|
| |
| class | JVectorNZ |
| | Determination of the time residual vector of hits for a track along z-axis (JFIT::JLine1Z). More...
|
| |
| class | JEnergyCorrection |
| | Auxiliary class for correction of energy determined by JEnergy.cc. More...
|
| |
| class | JFit |
| | Data structure for track fit results. More...
|
| |
| class | JEvt |
| | Data structure for set of track fit results. More...
|
| |
| struct | JEvent |
| | Auxiliary class for historical event. More...
|
| |
| struct | JHistory |
| | Container for historical events. More...
|
| |
| class | JShowerEnergyCorrection |
| | Auxiliary class for correction of energy determined by JShowerEnergy.cc. More...
|
| |
|
| double | 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 | getP (const double expval, const unsigned int numberOfHits, const double precision=1.0e-5) |
| | Get Poisson probability to observe given number of hits or more for the given expectation value for the number of hits. More...
|
| |
| double | getChi2 (const double P) |
| | Get chi2 corresponding to given probability. More...
|
| |
| double | 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 | 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 | getChi2 (const JModel_t &model, T __begin, T __end, const double sigma) |
| | Determine chi2 of data for given model and time resolution. More...
|
| |
| double | getChi2 (const JVectorNZ &Y, const JMatrixNZ &V) |
| | Determine chi2 using full covariance matrix. More...
|
| |
| template<class T > |
| double | 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 | 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 | 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 | getChi2 (const JModel_t &model, const JFit_t &fit, T __begin, T __end) |
| | Get chi2 of data for given model and fit function. More...
|
| |
| JMEstimator * | getMEstimator (const int type) |
| | Get M-Estimator. More...
|
| |
Auxiliary classes and methods for linear and iterative data regression.
- Author
- mdejong
-
adomi
-
lquinn
-
mdejong, adomi
template<class JModel_t , class JFit_t , class T >
| double JFIT::getChi2 |
( |
const JModel_t & |
model, |
|
|
const JFit_t & |
fit, |
|
|
T |
__begin, |
|
|
T |
__end |
|
) |
| |
|
inline |
Get chi2 of data for given model and fit function.
The template argument JFit_t refers to a data structure which should provide for the function object operator:
double operator()(const JModel_t& model, const value_type&) const; // chi2
where JModel_t refers to the given model and value_type to the value type if the input data. The return value should correspond to the chi2 of the hit.
- Parameters
-
| model | model |
| fit | fit function |
| __begin | begin of data |
| __end | end of data |
Definition at line 250 of file JFitToolkit.hh.
254 for (
T hit = __begin; hit != __end; ++hit) {
255 chi2 += fit(model, *hit);
do set_variable OUTPUT_DIRECTORY $WORKDIR T