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 JNullType &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 211 of file JResult.hh.
typedef JLANG::JClass<JResult_t>::argument_type JTOOLS::JResultPDF< JResult_t >::argument_type |
Definition at line 215 of file JResult.hh.
|
inline |
|
inline |
Constructor.
__f | function value |
__fp | first derivative |
__v | integral <xmin,x] |
__V | integral <xmin,xmax> |
Definition at line 237 of file JResult.hh.
|
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 257 of file JResult.hh.
|
inline |
Prefix unary minus for function value of PDF.
Definition at line 272 of file JResult.hh.
|
inline |
Addition operator for function value of PDF.
value | function value of PDF |
Definition at line 289 of file JResult.hh.
|
inline |
Subtraction operator for function value of PDF.
value | function value of PDF |
Definition at line 306 of file JResult.hh.
|
inline |
Multiplication operator for function value of PDF.
value | multiplication factor |
Definition at line 323 of file JResult.hh.
|
inline |
Division operator for function value of PDF.
value | division factor |
Definition at line 340 of file JResult.hh.
|
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 358 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 370 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 387 of file JResult.hh.
JResult_t JTOOLS::JResultPDF< JResult_t >::fp |
first derivative
Definition at line 388 of file JResult.hh.
JResult_t JTOOLS::JResultPDF< JResult_t >::v |
integral <xmin,x]
Definition at line 389 of file JResult.hh.
JResult_t JTOOLS::JResultPDF< JResult_t >::V |
integral <xmin,xmax>
Definition at line 390 of file JResult.hh.