Jpp
|
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 | |
JResultHesse () | |
Default constructor. More... | |
JResultHesse (argument_type __f, argument_type __fp) | |
Constructor. More... | |
JResultHesse & | negate () |
Prefix unary minus for function value of PDF. More... | |
JResultHesse & | add (const JResultHesse &value) |
Addition operator for function value of PDF. More... | |
JResultHesse & | sub (const JResultHesse &value) |
Subtraction operator for function value of PDF. More... | |
JResultHesse & | mul (const double value) |
Multiplication operator for function value of PDF. More... | |
JResultHesse & | div (const double value) |
Division operator for function value of PDF. More... | |
double | getP (const bool hit) const |
Get probability. More... | |
double | getChi2 (const bool hit) const |
Get chi2. More... | |
double | getDerivativeOfChi2 (const bool hit) const |
Get derivative of chi2. More... | |
JResultHesse< JResult_t > & | mul (const JNullType &object) |
Multiply with object. More... | |
Public Attributes | |
JResult_t | f |
function value More... | |
JResult_t | fp |
first derivative More... | |
Data structure for result including value and first derivative of function.
This data structure contains the following data mambers:
JResultHesse::f = function value; JResultHesse::fp = first derivative;
This class implements the JMATH::JMath interface.
Definition at line 40 of file JResult.hh.
typedef JLANG::JClass<JResult_t>::argument_type JTOOLS::JResultHesse< JResult_t >::argument_type |
Definition at line 44 of file JResult.hh.
|
inline |
|
inline |
Constructor.
__f | function value |
__fp | first derivative |
Definition at line 62 of file JResult.hh.
|
inline |
Prefix unary minus for function value of PDF.
Definition at line 74 of file JResult.hh.
|
inline |
Addition operator for function value of PDF.
value | function value of PDF |
Definition at line 89 of file JResult.hh.
|
inline |
Subtraction operator for function value of PDF.
value | function value of PDF |
Definition at line 104 of file JResult.hh.
|
inline |
Multiplication operator for function value of PDF.
value | multiplication factor |
Definition at line 119 of file JResult.hh.
|
inline |
Division operator for function value of PDF.
value | multiplication factor |
Definition at line 134 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 JResultHesse::f.
hit | hit (or not) |
Definition at line 151 of file JResult.hh.
|
inline |
Get chi2.
The chi2 corresponds to -log(P)
, where P
is the probability JResultHesse::f.
hit | hit (or not) |
Definition at line 167 of file JResult.hh.
|
inline |
Get derivative of chi2.
hit | hit (or not) |
Definition at line 182 of file JResult.hh.
|
inlineinherited |
Multiply with object.
object | object |
Definition at line 273 of file JMath.hh.
JResult_t JTOOLS::JResultHesse< JResult_t >::f |
function value
Definition at line 191 of file JResult.hh.
JResult_t JTOOLS::JResultHesse< JResult_t >::fp |
first derivative
Definition at line 192 of file JResult.hh.