Jpp  debug
the software that should make you happy
Public Member Functions | List of all members
JROOT::JF1::helper< JF1_t > Struct Template Reference

Helper. More...

#include <JRootfit.hh>

Inheritance diagram for JROOT::JF1::helper< JF1_t >:

Public Member Functions

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

Detailed Description

template<class JF1_t>
struct JROOT::JF1::helper< JF1_t >

Helper.

Definition at line 617 of file JRootfit.hh.

Constructor & Destructor Documentation

◆ helper()

template<class JF1_t >
JROOT::JF1::helper< JF1_t >::helper ( const JF1_t &  f1)
inline

Constructor.

Parameters
f1function

Definition at line 625 of file JRootfit.hh.

625  :
626  JF1_t(f1)
627  {}
const JPolynome f1(1.0, 2.0, 3.0)
Function.

Member Function Documentation

◆ operator()()

template<class JF1_t >
double JROOT::JF1::helper< JF1_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 637 of file JRootfit.hh.

638  {
639  setParameters(this, parameters);
640 
641  return this->getValue(x[0]);
642  }
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: