Logo ROOT   6.13/01
Reference Guide
List of all members | Public Types | Public Member Functions | Private Member Functions | List of all members
ROOT::Math::IParametricFunctionOneDim Class Referenceabstract

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
 
- Public Types inherited from ROOT::Math::IBaseFunctionOneDim
typedef IBaseFunctionOneDim BaseFunc
 

Public Member Functions

double operator() (double x, const double *p) const
 Evaluate function at a point x and for given parameters p. More...
 
double operator() (const double *x, const double *p) const
 multidim-like interface More...
 
- Public Member Functions inherited from ROOT::Math::IBaseFunctionOneDim
 IBaseFunctionOneDim ()
 
virtual ~IBaseFunctionOneDim ()
 virtual destructor More...
 
virtual IBaseFunctionOneDimClone () const =0
 Clone a function. 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...
 
double operator() (const double *x) const
 Evaluate the function at a point x[]. More...
 
- Public Member Functions inherited from ROOT::Math::IBaseParam
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>

Inheritance diagram for ROOT::Math::IParametricFunctionOneDim:
[legend]

Member Typedef Documentation

◆ BaseFunc

Definition at line 163 of file IParamFunction.h.

Member Function Documentation

◆ DoEval()

virtual double ROOT::Math::IParametricFunctionOneDim::DoEval ( double  x) const
inlineprivatevirtual

Implement the ROOT::Math::IBaseFunctionOneDim interface DoEval(x) using the cached parameter values.

Implements ROOT::Math::IBaseFunctionOneDim.

Reimplemented in ROOT::Math::VavilovAccurateCdf, ROOT::Math::VavilovAccuratePdf, and ROOT::Math::VavilovAccurateQuantile.

Definition at line 200 of file IParamFunction.h.

◆ DoEvalPar()

virtual double ROOT::Math::IParametricFunctionOneDim::DoEvalPar ( double  x,
const double *  p 
) const
privatepure virtual

Implementation of the evaluation function using the x value and the parameters.

Must be implemented by derived classes

Implemented in ROOT::Math::Polynomial, ROOT::Math::VavilovAccurateCdf, ROOT::Math::VavilovAccuratePdf, and ROOT::Math::VavilovAccurateQuantile.

◆ operator()() [1/2]

double ROOT::Math::IParametricFunctionOneDim::operator() ( double  x,
const double *  p 
) const
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.

◆ operator()() [2/2]

double ROOT::Math::IParametricFunctionOneDim::operator() ( const double *  x,
const double *  p 
) const
inline

multidim-like interface

Definition at line 184 of file IParamFunction.h.

Libraries for ROOT::Math::IParametricFunctionOneDim:
[legend]

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