![]() |
ROOT 6.16/01 Reference Guide |
Specialized IParamFunction interface (abstract class) for one-dimensional parametric functions It is a derived class from ROOT::Math::IBaseFunctionOneDim and ROOT::Math::IBaseParam.
Definition at line 156 of file IParamFunction.h.
Public Types | |
typedef IBaseFunctionOneDim | BaseFunc |
![]() | |
typedef IBaseFunctionOneDim | BaseFunc |
Public Member Functions | |
double | operator() (const double *x, const double *p) const |
multidim-like interface More... | |
double | operator() (double x, const double *p) const |
Evaluate function at a point x and for given parameters p. More... | |
![]() | |
IBaseFunctionOneDim () | |
virtual | ~IBaseFunctionOneDim () |
virtual destructor More... | |
virtual IBaseFunctionOneDim * | Clone () const =0 |
Clone a function. More... | |
double | operator() (const double *x) const |
Evaluate the function at a point x[]. More... | |
double | operator() (double x) const |
Evaluate the function at a point x Use the a pure virtual private method DoEval which must be implemented by sub-classes. More... | |
![]() | |
virtual | ~IBaseParam () |
Virtual Destructor (no operations) More... | |
virtual unsigned int | NPar () const =0 |
Return the number of Parameters. More... | |
virtual std::string | ParameterName (unsigned int i) const |
Return the name of the i-th parameter (starting from zero) Overwrite if want to avoid the default name ("Par_0, Par_1, ...") More... | |
virtual const double * | Parameters () const =0 |
Access the parameter values. More... | |
virtual void | SetParameters (const double *p)=0 |
Set the parameter values. More... | |
Private Member Functions | |
virtual double | DoEval (double x) const |
Implement the ROOT::Math::IBaseFunctionOneDim interface DoEval(x) using the cached parameter values. More... | |
virtual double | DoEvalPar (double x, const double *p) const =0 |
Implementation of the evaluation function using the x value and the parameters. More... | |
#include <Math/IParamFunction.h>
Definition at line 163 of file IParamFunction.h.
|
inlineprivatevirtual |
Implement the ROOT::Math::IBaseFunctionOneDim interface DoEval(x) using the cached parameter values.
Implements ROOT::Math::IBaseFunctionOneDim.
Reimplemented in ROOT::Math::WrappedTF1, ROOT::Math::VavilovAccurateCdf, ROOT::Math::VavilovAccuratePdf, and ROOT::Math::VavilovAccurateQuantile.
Definition at line 200 of file IParamFunction.h.
|
privatepure virtual |
Implementation of the evaluation function using the x value and the parameters.
Must be implemented by derived classes
Implemented in ROOT::Math::WrappedTF1, ROOT::Math::Polynomial, ROOT::Math::VavilovAccurateCdf, ROOT::Math::VavilovAccuratePdf, and ROOT::Math::VavilovAccurateQuantile.
|
inline |
multidim-like interface
Definition at line 184 of file IParamFunction.h.
|
inline |
Evaluate function at a point x and for given parameters p.
This method does not change the internal status of the function (internal parameter values). If for some reason one prefers caching the parameter values, SetParameters(p) and then operator()(x) should be called. Use the pure virtual function DoEvalPar to implement it
Definition at line 175 of file IParamFunction.h.