class ROOT::Math::WrappedTF1: public ROOT::Math::IParametricGradFunctionOneDim

Function Members (Methods)

public:
virtual~WrappedTF1()
virtual ROOT::Math::IGenFunction*Clone() const
doubleROOT::Math::IGradientOneDim::Derivative(double x) const
doubleROOT::Math::IGradientOneDim::Derivative(const double* x) const
virtual voidROOT::Math::IGradientFunctionOneDim::FdF(double x, double& f, double& df) const
voidROOT::Math::IGradientOneDim::Gradient(const double* x, double* g) const
virtual unsigned intNPar() const
virtual doubleoperator()(const double* x, const double* p)
ROOT::Math::WrappedTF1&operator=(const ROOT::Math::WrappedTF1& rhs)
doubleROOT::Math::IParametricGradFunctionOneDim::ParameterDerivative(double x, unsigned int ipar = 0) const
doubleROOT::Math::IParametricGradFunctionOneDim::ParameterDerivative(const double* x, unsigned int ipar = 0) const
virtual voidParameterGradient(double x, double* grad) const
virtual stringParameterName(unsigned int i) const
virtual const double*Parameters() const
virtual voidSetParameters(const double* p)
ROOT::Math::WrappedTF1WrappedTF1()
ROOT::Math::WrappedTF1WrappedTF1(TF1& f)
ROOT::Math::WrappedTF1WrappedTF1(const ROOT::Math::WrappedTF1& rhs)
private:
virtual doubleDoDerivative(double x) const
virtual doubleDoEval(double x) const
virtual doubleDoParameterDerivative(double x, unsigned int ipar) const

Data Members

private:
TF1*fFuncpointer to ROOT function
boolfLinearflag for linear functions
vector<double>fParamscached vector with parameter values
boolfPolynomialflag for polynomial functions
doublefX[1]cached vector for x value (needed for TF1::EvalPar signature)

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

WrappedTF1()
{}
WrappedTF1( TF1 & f )
      constructor from a function pointer.

virtual ~WrappedTF1()
      Destructor (no operations). TF1 Function pointer is not owned

{}
WrappedTF1(const WrappedTF1 & rhs)
      Copy constructor

ROOT::Math::IGenFunction * Clone()
 @name interface inherited from IFunction 

       Clone the wrapper but not the original function

const double * Parameters()
 @name interface inherited from IParamFunction 
 get the parameter values (return values cachen inside, those inside TF1 might be different)
void SetParameters(const double* p)
 set parameter values (only the cached one in this class,leave unchanges those of TF1)
unsigned int NPar()
 return number of parameters
std::string ParameterName(unsigned int i) const
 return parameter name (this is stored in TF1)
double operator()(const double* x, const double* p)
 evaluate function passing coordinates x and vector of parameters
void ParameterGradient(double x, double* grad) const
 evaluate the derivative of the function with respect to the parameters
double DoEval(double x) const
 evaluate function using the cached parameter values of this class (not of TF1)
double DoDerivative(double x) const
 return the function derivatives w.r.t. x
double DoParameterDerivative(double x, unsigned int ipar) const
 evaluate the derivative of the function with respect to the parameters

Author: L. Moneta Wed Sep 6 09:52:26 2006
Last change: root/mathmore:$Id: WrappedTF1.h 22615 2008-03-12 10:27:32Z moneta $
Last generated: 2008-05-13 17:02
Copyright (c) 2006 LCG ROOT Math Team, CERN/PH-SFT *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.