Logo ROOT   6.08/07
Reference Guide
List of all members | Public Types | Public Member Functions | Private Member Functions | List of all members
ROOT::Math::IParametricFunctionMultiDim Class Referenceabstract

IParamFunction interface (abstract class) describing multi-dimensional parameteric functions It is a derived class from ROOT::Math::IBaseFunctionMultiDim and ROOT::Math::IBaseParam.

Provides the interface for evaluating a function passing a coordinate vector and a parameter vector.

Definition at line 108 of file IParamFunction.h.

Public Types

typedef IBaseFunctionMultiDim BaseFunc
 
- Public Types inherited from ROOT::Math::IBaseFunctionMultiDim
typedef IBaseFunctionMultiDim BaseFunc
 

Public Member Functions

double operator() (const double *x, const double *p) const
 Evaluate function at a point x and for given parameters p. More...
 
- Public Member Functions inherited from ROOT::Math::IBaseFunctionMultiDim
 IBaseFunctionMultiDim ()
 
virtual ~IBaseFunctionMultiDim ()
 virtual destructor More...
 
virtual IBaseFunctionMultiDimClone () const =0
 Clone a function. More...
 
virtual unsigned int NDim () const =0
 Retrieve the dimension of the function. 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 (const double *x) const
 Implement the ROOT::Math::IBaseFunctionMultiDim interface DoEval(x) using the cached parameter values. More...
 
virtual double DoEvalPar (const double *x, const double *p) const =0
 Implementation of the evaluation function using the x values and the parameters. More...
 

#include <Math/IParamFunction.h>

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

Member Typedef Documentation

◆ BaseFunc

Definition at line 114 of file IParamFunction.h.

Member Function Documentation

◆ DoEval()

virtual double ROOT::Math::IParametricFunctionMultiDim::DoEval ( const double *  x) const
inlineprivatevirtual

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

Implements ROOT::Math::IBaseFunctionMultiDim.

Reimplemented in ROOT::Math::WrappedParamFunctionGen< FuncPtr >, and ROOT::Math::WrappedMultiTF1.

Definition at line 143 of file IParamFunction.h.

◆ DoEvalPar()

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

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

Must be implemented by derived classes

Implemented in ROOT::Math::MultiDimParamGradFunctionAdapter, ROOT::Math::WrappedParamFunctionGen< FuncPtr >, WrapperRooPdf, ROOT::Math::WrappedMultiTF1, ROOT::Math::MultiDimParamFunctionAdapter, ROOT::Math::WrappedParamFunction< FuncPtr >, and GaussFunction.

◆ operator()()

double ROOT::Math::IParametricFunctionMultiDim::operator() ( const 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 125 of file IParamFunction.h.


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