|
Jpp
|
Data structure for result including value, first derivative and integrals of function. More...
#include <JResult.hh>
Public Types | |
| typedef JLANG::JClass< JResult_t >::argument_type | argument_type |
Public Member Functions | |
| JResultPDF () | |
| Default constructor. More... | |
| JResultPDF (argument_type f, argument_type fp, argument_type v, argument_type V) | |
| Constructor. More... | |
| JResultPDF (argument_type R, argument_type x, const JRange< JResult_t > &X) | |
| Constructor. More... | |
| JResultPDF & | negate () |
| Prefix unary minus for function value of PDF. More... | |
| JResultPDF & | add (const JResultPDF &value) |
| Addition operator for function value of PDF. More... | |
| JResultPDF & | sub (const JResultPDF &value) |
| Subtraction operator for function value of PDF. More... | |
| JResultPDF & | mul (const double value) |
| Multiplication operator for function value of PDF. More... | |
| JResultPDF & | div (const double value) |
| Division operator for function value of PDF. More... | |
| double | getP () const |
| Get probability of first hit. More... | |
| double | getChi2 () const |
| Get chi2 of first hit. More... | |
| double | getDerivativeOfChi2 () const |
| Get derivative of chi2 of first hit. More... | |
| JResultPDF< JResult_t > & | mul (const JSecond_t &object) |
| Multiply with object. More... | |
Public Attributes | |
| JResult_t | f |
| function value More... | |
| JResult_t | fp |
| first derivative More... | |
| JResult_t | v |
| integral <xmin,x] More... | |
| JResult_t | V |
| integral <xmin,xmax> More... | |
Data structure for result including value, first derivative and integrals of function.
This data structure contains the following data mambers:
JResultPDF::f = function value; JResultPDF::fp = first derivative; JResultPDF::v = partial integral; JResultPDF::V = complete integral.
The partial and complete integrals are used to evaluate the probability of the first hit.
This class implements the JMATH::JMath interface.
Definition at line 335 of file JResult.hh.
| typedef JLANG::JClass<JResult_t>::argument_type JTOOLS::JResultPDF< JResult_t >::argument_type |
Definition at line 339 of file JResult.hh.
|
inline |
Default constructor.
Definition at line 345 of file JResult.hh.
|
inline |
|
inline |
Constructor.
This constructor refers to the result of a signal with a constant rate R to produce an event occuring at the given moment x within the fixed range X.
| R | rate |
| x | abscissa value |
| X | abscissa range |
Definition at line 381 of file JResult.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get probability of first hit.
The probability is defined at the moment JResultPDF::f and JResultPDF::v have been evaluated and it is normalised to the total interval corresponding to JResultPDF::V.
Definition at line 482 of file JResult.hh.
|
inline |
Get chi2 of first hit.
The chi2 corresponds to -log(P), where P is the probability JResultPDF::f.
Definition at line 494 of file JResult.hh.
|
inline |
|
inlineinherited |
Multiply with object.
| object | object |
Definition at line 273 of file JMath.hh.
| JResult_t JTOOLS::JResultPDF< JResult_t >::f |
function value
Definition at line 511 of file JResult.hh.
| JResult_t JTOOLS::JResultPDF< JResult_t >::fp |
first derivative
Definition at line 512 of file JResult.hh.
| JResult_t JTOOLS::JResultPDF< JResult_t >::v |
integral <xmin,x]
Definition at line 513 of file JResult.hh.
| JResult_t JTOOLS::JResultPDF< JResult_t >::V |
integral <xmin,xmax>
Definition at line 514 of file JResult.hh.
1.8.16