Jpp  19.1.0
the software that should make you happy
Public Member Functions | Public Attributes | List of all members
JROOT::m_value Struct Reference

Data point for value with error. More...

#include <JRootfit.hh>

Public Member Functions

 m_value ()
 Default constructor. More...
 
 m_value (const double value, const double error)
 Constructor. More...
 
double getRho (const double z) const
 Get chi2. More...
 
double getPsi (const double z) const
 Get derivative of chi2. More...
 

Public Attributes

double value
 value More...
 
double error
 error More...
 

Detailed Description

Data point for value with error.

Definition at line 127 of file JRootfit.hh.

Constructor & Destructor Documentation

◆ m_value() [1/2]

JROOT::m_value::m_value ( )
inline

Default constructor.

Definition at line 131 of file JRootfit.hh.

131  :
132  value(0.0),
133  error(0.0)
134  {}
double value
value
Definition: JRootfit.hh:178
double error
error
Definition: JRootfit.hh:179

◆ m_value() [2/2]

JROOT::m_value::m_value ( const double  value,
const double  error 
)
inline

Constructor.

Parameters
valuevalue
errorerror

Definition at line 143 of file JRootfit.hh.

144  :
145  value(value),
146  error (error)
147  {}

Member Function Documentation

◆ getRho()

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

Get chi2.

Parameters
zexpectation value
Returns
chi2

Definition at line 156 of file JRootfit.hh.

157  {
158  const double u = (value - z) / error;
159 
160  return u*u;
161  }
double u[N+1]
Definition: JPolint.hh:865

◆ getPsi()

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

Get derivative of chi2.

Parameters
zexpectation value
Returns
derivative of chi2

Definition at line 170 of file JRootfit.hh.

171  {
172  const double u = (value - z) / error;
173 
174  return -0.5 * u / error;
175  }

Member Data Documentation

◆ value

double JROOT::m_value::value

value

Definition at line 178 of file JRootfit.hh.

◆ error

double JROOT::m_value::error

error

Definition at line 179 of file JRootfit.hh.


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