| Jpp 20.0.0-rc.3
    the software that should make you happy | 
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. | |
| JResultPDF (argument_type f, argument_type fp, argument_type v, argument_type V) | |
| Constructor. | |
| JResultPDF (argument_type R, argument_type x, const JRange< JResult_t > &X) | |
| Constructor. | |
| JResultPDF & | negate () | 
| Prefix unary minus for function value of PDF. | |
| JResultPDF & | add (const JResultPDF &value) | 
| Addition operator for function value of PDF. | |
| JResultPDF & | sub (const JResultPDF &value) | 
| Subtraction operator for function value of PDF. | |
| JResultPDF & | mul (const double value) | 
| Multiplication operator for function value of PDF. | |
| JResultPDF & | div (const double value) | 
| Division operator for function value of PDF. | |
| double | getP () const | 
| Get probability of first hit. | |
| double | getChi2 () const | 
| Get chi2 of first hit. | |
| double | getDerivativeOfChi2 () const | 
| Get derivative of chi2 of first hit. | |
| JFirst_t & | mul (const JSecond_t &object) | 
| Multiply with object. | |
| Public Attributes | |
| JResult_t | f | 
| function value | |
| JResult_t | fp | 
| first derivative | |
| JResult_t | v | 
| integral <xmin,x] | |
| JResult_t | V | 
| integral <xmin,xmax> | |
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 337 of file JResult.hh.
| JLANG::JClass<JResult_t>::argument_type JTOOLS::JResultPDF< JResult_t >::argument_type | 
Definition at line 341 of file JResult.hh.
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
Constructor.
This constructor refers to the result of a signal with a constant rate R to produce an event occurring at the given moment x within the fixed range X.
| R | rate | 
| x | abscissa value | 
| X | abscissa range | 
Definition at line 383 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 484 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 496 of file JResult.hh.
| 
 | inline | 
| 
 | inlineinherited | 
| JResult_t JTOOLS::JResultPDF< JResult_t >::f | 
function value
Definition at line 513 of file JResult.hh.
| JResult_t JTOOLS::JResultPDF< JResult_t >::fp | 
first derivative
Definition at line 514 of file JResult.hh.
| JResult_t JTOOLS::JResultPDF< JResult_t >::v | 
integral <xmin,x]
Definition at line 515 of file JResult.hh.
| JResult_t JTOOLS::JResultPDF< JResult_t >::V | 
integral <xmin,xmax>
Definition at line 516 of file JResult.hh.