ROOT  6.06/09
Reference Guide
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 158 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 const doubleParameters () const =0
 Access the parameter values. More...
 
virtual void SetParameters (const double *p)=0
 Set the parameter values. 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...
 

Private Member Functions

virtual double DoEvalPar (double x, const double *p) const =0
 Implementation of the evaluation function using the x value and the parameters. More...
 
virtual double DoEval (double x) const
 Implement the ROOT::Math::IBaseFunctionOneDim interface DoEval(x) using the cached parameter values. More...
 

#include <Math/IParamFunction.h>

+ Inheritance diagram for ROOT::Math::IParametricFunctionOneDim:
+ Collaboration diagram for ROOT::Math::IParametricFunctionOneDim:

Member Typedef Documentation

Definition at line 165 of file IParamFunction.h.

Member Function Documentation

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::WrappedTF1, ROOT::Math::VavilovAccurateCdf, ROOT::Math::VavilovAccurateQuantile, and ROOT::Math::VavilovAccuratePdf.

Definition at line 201 of file IParamFunction.h.

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::WrappedTF1, ROOT::Math::VavilovAccurateCdf, ROOT::Math::VavilovAccurateQuantile, and ROOT::Math::VavilovAccuratePdf.

Referenced by DoEval(), and operator()().

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 177 of file IParamFunction.h.

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

multidim-like interface

Definition at line 185 of file IParamFunction.h.


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