Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JROOT::m_count Struct Reference

Data point for counting measurement. More...

#include <JRootfit.hh>

Public Member Functions

 m_count ()
 Default constructor.
 
 m_count (const size_t count)
 Constructor.
 
double getRho (const double z) const
 Get chi2.
 
double getPsi (const double z) const
 Get derivative of chi2.
 

Static Public Member Functions

static double epsilon ()
 Minimal value for numerical computations.
 

Public Attributes

size_t count
 count
 

Detailed Description

Data point for counting measurement.

Definition at line 64 of file JRootfit.hh.

Constructor & Destructor Documentation

◆ m_count() [1/2]

JROOT::m_count::m_count ( )
inline

Default constructor.

Definition at line 68 of file JRootfit.hh.

68 :
69 count(0)
70 {}
size_t count
count
Definition JRootfit.hh:120

◆ m_count() [2/2]

JROOT::m_count::m_count ( const size_t count)
inline

Constructor.

Parameters
countcount

Definition at line 78 of file JRootfit.hh.

78 :
80 {}

Member Function Documentation

◆ epsilon()

static double JROOT::m_count::epsilon ( )
inlinestatic

Minimal value for numerical computations.

Returns
epsilon

Definition at line 88 of file JRootfit.hh.

89 {
90 return std::numeric_limits<double>::min();
91 }

◆ getRho()

double JROOT::m_count::getRho ( const double z) const
inline

Get chi2.

Parameters
zexpectation value
Returns
chi2

Definition at line 100 of file JRootfit.hh.

101 {
102 const double P = poisson(count, z > epsilon() ? z : epsilon());
103
104 return -log(P > epsilon() ? P : epsilon());
105 }
static double epsilon()
Minimal value for numerical computations.
Definition JRootfit.hh:88

◆ getPsi()

double JROOT::m_count::getPsi ( const double z) const
inline

Get derivative of chi2.

Parameters
zexpectation value
Returns
derivative of chi2

Definition at line 114 of file JRootfit.hh.

115 {
116 return 1.0 - count/(z > epsilon() ? z : epsilon());
117 }

Member Data Documentation

◆ count

size_t JROOT::m_count::count

count

Definition at line 120 of file JRootfit.hh.


The documentation for this struct was generated from the following file: