|
Jpp
18.4.0
the software that should make you happy
|
Auxiliary classes and methods for linear and iterative data regression. More...
Classes | |
| class | JEnergy |
| Data structure for fit of energy. More... | |
| struct | JRegressor< JEnergy > |
| Regressor function object for fit of muon energy. More... | |
| class | JEstimator |
| Template definition of linear fit. More... | |
| class | JGandalf |
| Fit method based on the Levenberg-Marquardt method. More... | |
| struct | JParameter_t |
| Auxiliary data structure for fit parameter. More... | |
| struct | JModifier_t |
| Auxiliary data structure for editable parameter. More... | |
| struct | JGradient |
| Conjugate gradient fit. More... | |
| struct | JK40 |
| Auxiliary class for handling light yields due to K40 decays. 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 | JMEstimatorNormal |
| Normal M-estimator. More... | |
| struct | JMEstimatorLorentzian |
| Lorentzian M-estimator. More... | |
| struct | JMEstimatorLinear |
| Linear M-estimator. More... | |
| struct | JMEstimatorNull |
| Null M-estimator. More... | |
| struct | JMEstimatorTukey |
| Tukey's biweight M-estimator. More... | |
| struct | JMEstimatorNormalWithBackground |
| Normal M-estimator with background. 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... | |
| class | 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 | JSimplex |
| Simple fit method based on Powell's algorithm, see reference: Numerical Recipes in C++, W.H. More... | |
| struct | JRegressorHelper |
| Template data structure for PDF tables. More... | |
| struct | JRegressorHelper< JLine3Z, JGandalf > |
| Template specialisation for PDF tables. More... | |
| struct | JRegressorStorage |
| Template data structure for storage for PDF tables. More... | |
| struct | JRegressorStorage< JLine3Z, JGandalf > |
| Template specialisation for storage for PDF tables. 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 | 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 with history and optional associated values. 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... | |
Typedefs | |
| typedef JTOOLS::JRange< double > | JZRange |
Enumerations | |
| enum | JMEstimator_t { EM_NORMAL = 0, EM_LORENTZIAN = 1, EM_LINEAR = 2, EM_NULL = 3, EM_TUKEY = 4, EM_NORMALWITHBACKGROUND = 5 } |
| Definition of the various M-Estimators available to use. More... | |
Functions | |
| 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 | 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... | |
| double | getProbability (const size_t N, const size_t M, const JK40Rates &R_Hz, const double T_ns) |
| Get probability due to random background. More... | |
| JMEstimator * | getMEstimator (const int type) |
| Get M-Estimator. More... | |
Auxiliary classes and methods for linear and iterative data regression.
| typedef JTOOLS::JRange<double> JFIT::JZRange |
Definition at line 21 of file JFit/JModel.hh.
| enum JFIT::JMEstimator_t |
Definition of the various M-Estimators available to use.
| Enumerator | |
|---|---|
| EM_NORMAL | |
| EM_LORENTZIAN | |
| EM_LINEAR | |
| EM_NULL | |
| EM_TUKEY | |
| EM_NORMALWITHBACKGROUND | |
Definition at line 185 of file JMEstimator.hh.
|
inline |
Get Poisson probability to observe a hit or not for given expectation value for the number of hits.
| expval | expectation value |
| hit | hit |
Definition at line 41 of file JFitToolkit.hh.
|
inline |
Get chi2 corresponding to given probability.
| P | probability |
Definition at line 56 of file JFitToolkit.hh.
|
inline |
Get chi2 to observe a hit or not for given expectation value for the number of hits.
| expval | expectation value |
| hit | hit |
Definition at line 69 of file JFitToolkit.hh.
|
inline |
Determine chi2 of a hit for a given model and time resolution.
The template argument JModel_t refers to a data structure which should provide for the following method:
double getT(const JHit_t& hit) const; // get expected time of hit
| model | model |
| hit | hit |
| sigma | sigma |
Definition at line 93 of file JFitToolkit.hh.
|
inline |
Determine chi2 of data for given model and time resolution.
The template argument JModel_t refers to a data structure which should provide for the following method:
double getT(const value_type& hit) const; // expected time of hit
where value_type corresponds to the value type if the input data.
| model | model |
| __begin | begin of data |
| __end | end of data |
| sigma | time resolution [ns] |
Definition at line 118 of file JFitToolkit.hh.
Determine chi2 using full covariance matrix.
| Y | residuals |
| V | covariance matrix |
Definition at line 137 of file JFitToolkit.hh.
|
inline |
Determine chi2 of data for given track using full covariance matrix.
| track | track |
| __begin | begin of data |
| __end | end of data |
| V | covariance matrix |
Definition at line 154 of file JFitToolkit.hh.
|
inline |
Determine chi2 of data for given track and angular and time resolution.
| track | track |
| __begin | begin of data |
| __end | end of data |
| alpha | angular resolution [deg] |
| sigma | time resolution [ns] |
Definition at line 176 of file JFitToolkit.hh.
Determine difference between chi2 with and without hit using full covariance matrix.
| Y | residuals |
| V | covariance matrix |
| i | index of excluded hit |
Definition at line 194 of file JFitToolkit.hh.
|
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.
| model | model |
| fit | fit function |
| __begin | begin of data |
| __end | end of data |
Definition at line 227 of file JFitToolkit.hh.
|
inline |
Get probability due to random background.
| N | number of active PMTs |
| M | multiplicity of hits |
| R_Hz | rates [Hz] |
| T_ns | time window [ns] |
Definition at line 248 of file JFitToolkit.hh.
|
inline |
Get M-Estimator.
Note that for M-estimators with an additional parameter, defaults are used.
| type | type |
Definition at line 203 of file JMEstimator.hh.
1.8.5