Jpp  18.6.0-rc.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 126 of file JRootfit.hh.

Constructor & Destructor Documentation

JROOT::m_value::m_value ( )
inline

Default constructor.

Definition at line 130 of file JRootfit.hh.

130  :
131  value(0.0),
132  error(0.0)
133  {}
double value
value
Definition: JRootfit.hh:177
double error
error
Definition: JRootfit.hh:178
JROOT::m_value::m_value ( const double  value,
const double  error 
)
inline

Constructor.

Parameters
valuevalue
errorerror

Definition at line 142 of file JRootfit.hh.

143  :
144  value(value),
145  error (error)
146  {}
double value
value
Definition: JRootfit.hh:177
double error
error
Definition: JRootfit.hh:178

Member Function Documentation

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

Get chi2.

Parameters
zexpectation value
Returns
chi2

Definition at line 155 of file JRootfit.hh.

156  {
157  const double u = (value - z) / error;
158 
159  return u*u;
160  }
double u[N+1]
Definition: JPolint.hh:865
double value
value
Definition: JRootfit.hh:177
double error
error
Definition: JRootfit.hh:178
double JROOT::m_value::getPsi ( const double  z) const
inline

Get derivative of chi2.

Parameters
zexpectation value
Returns
derivative of chi2

Definition at line 169 of file JRootfit.hh.

170  {
171  const double u = (value - z) / error;
172 
173  return -0.5 * u / error;
174  }
double u[N+1]
Definition: JPolint.hh:865
double value
value
Definition: JRootfit.hh:177
double error
error
Definition: JRootfit.hh:178

Member Data Documentation

double JROOT::m_value::value

value

Definition at line 177 of file JRootfit.hh.

double JROOT::m_value::error

error

Definition at line 178 of file JRootfit.hh.


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