Jpp 19.3.0-rc.1
the software that should make you happy
|
Data structure for result including value and first derivative of function. More...
#include <JResult.hh>
Public Types | |
typedef JLANG::JClass< JResult_t >::argument_type | argument_type |
Public Member Functions | |
JResultDerivative () | |
Default constructor. | |
JResultDerivative (argument_type f, argument_type fp) | |
Constructor. | |
JResultDerivative & | negate () |
Prefix unary minus for function value of PDF. | |
JResultDerivative & | add (const JResultDerivative &value) |
Addition operator for function value of PDF. | |
JResultDerivative & | sub (const JResultDerivative &value) |
Subtraction operator for function value of PDF. | |
JResultDerivative & | mul (const double value) |
Multiplication operator for function value of PDF. | |
JResultDerivative & | div (const double value) |
Division operator for function value of PDF. | |
double | getP (const bool hit) const |
Get probability. | |
double | getChi2 (const bool hit) const |
Get chi2. | |
double | getDerivativeOfChi2 (const bool hit) const |
Get derivative of chi2. | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. | |
Public Attributes | |
JResult_t | f |
function value | |
JResult_t | fp |
first derivative | |
Data structure for result including value and first derivative of function.
This data structure contains the following data mambers:
JResultDerivative::f = function value; JResultDerivative::fp = first derivative;
This class implements the JMATH::JMath interface.
Definition at line 43 of file JResult.hh.
JLANG::JClass<JResult_t>::argument_type JTOOLS::JResultDerivative< JResult_t >::argument_type |
Definition at line 47 of file JResult.hh.
|
inline |
|
inline |
|
inline |
|
inline |
Addition operator for function value of PDF.
value | function value of PDF |
Definition at line 92 of file JResult.hh.
|
inline |
Subtraction operator for function value of PDF.
value | function value of PDF |
Definition at line 107 of file JResult.hh.
|
inline |
Multiplication operator for function value of PDF.
value | multiplication factor |
Definition at line 122 of file JResult.hh.
|
inline |
Division operator for function value of PDF.
value | multiplication factor |
Definition at line 137 of file JResult.hh.
|
inline |
Get probability.
If the given hit is false (true), the return value corresponds to the Poisson probability that zero (one or more) hits occur for the given expectation value JResultDerivative::f.
hit | hit (or not) |
Definition at line 154 of file JResult.hh.
|
inline |
Get chi2.
The chi2 corresponds to -log(P)
, where P
is the probability JResultDerivative::f.
hit | hit (or not) |
Definition at line 170 of file JResult.hh.
|
inline |
|
inlineinherited |
JResult_t JTOOLS::JResultDerivative< JResult_t >::f |
function value
Definition at line 194 of file JResult.hh.
JResult_t JTOOLS::JResultDerivative< JResult_t >::fp |
first derivative
Definition at line 195 of file JResult.hh.