Jpp  19.1.0-rc.1
the software that should make you happy
Public Member Functions | List of all members
JROOT::JF2::helper< JF2_t > Struct Template Reference

Helper. More...

#include <JRootfit.hh>

Inheritance diagram for JROOT::JF2::helper< JF2_t >:

Public Member Functions

 helper (const JF2_t &f2)
 Constructor. More...
 
double operator() (const double *x, const double *parameters)
 ROOT compatible function call. More...
 

Detailed Description

template<class JF2_t>
struct JROOT::JF2::helper< JF2_t >

Helper.

Definition at line 683 of file JRootfit.hh.

Constructor & Destructor Documentation

◆ helper()

template<class JF2_t >
JROOT::JF2::helper< JF2_t >::helper ( const JF2_t &  f2)
inline

Constructor.

Parameters
f2function

Definition at line 691 of file JRootfit.hh.

691  :
692  JF2_t(f2)
693  {}

Member Function Documentation

◆ operator()()

template<class JF2_t >
double JROOT::JF2::helper< JF2_t >::operator() ( const double *  x,
const double *  parameters 
)
inline

ROOT compatible function call.

Parameters
xpointer to abscissa values
parameterspointer to parameter values
Returns
function value

Definition at line 703 of file JRootfit.hh.

704  {
705  setParameters(this, parameters);
706 
707  return this->getValue(x[0], x[1]);
708  }
double getValue(const JScale_t scale)
Get numerical value corresponding to scale.
Definition: JScale.hh:47
void setParameters(JF1_t *f1, const double *values)
Set values of all parameters.
Definition: JMathlib.hh:182

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