ROOT
6.07/01
Reference Guide
|
Specialized Gradient interface(abstract class) for one dimensional functions It provides a method to evaluate the derivative of the function, Derivative and a method to evaluate at the same time the function and the derivative FdF.
Concrete classes should derive from ROOT::Math::IGradientFunctionOneDim and not from this class.
Definition at line 247 of file IFunction.h.
Public Member Functions | |
virtual | ~IGradientOneDim () |
virtual destructor More... | |
double | Derivative (double x) const |
Return the derivative of the function at a point x Use the private method DoDerivative. More... | |
virtual void | FdF (double x, double &f, double &df) const =0 |
Optimized method to evaluate at the same time the function value and derivative at a point x. More... | |
double | Derivative (const double *x) const |
Compatibility method with multi-dimensional interface for partial derivative. More... | |
void | Gradient (const double *x, double *g) const |
Compatibility method with multi-dimensional interface for Gradient. More... | |
void | FdF (const double *x, double &f, double *df) const |
Compatibility method with multi-dimensional interface for Gradient and function evaluation. More... | |
Private Member Functions | |
virtual double | DoDerivative (double x) const =0 |
function to evaluate the derivative with respect each coordinate. More... | |
#include <Math/IFunction.h>
|
inlinevirtual |
virtual destructor
Definition at line 252 of file IFunction.h.
Return the derivative of the function at a point x Use the private method DoDerivative.
Definition at line 258 of file IFunction.h.
Referenced by ROOT::Math::Polynomial::FdF(), ROOT::Math::IGradientFunctionOneDim::FdF(), and testDerivation().
Compatibility method with multi-dimensional interface for partial derivative.
Definition at line 276 of file IFunction.h.
function to evaluate the derivative with respect each coordinate.
To be implemented by the derived class
Implemented in ROOT::Math::GradFunctor1D, ROOT::Math::Polynomial, and ROOT::Math::WrappedTF1.
Referenced by Derivative(), and Gradient().
|
pure virtual |
Optimized method to evaluate at the same time the function value and derivative at a point x.
Often both value and derivatives are needed and it is often more efficient to compute them at the same time. Derived class should implement this method if performances play an important role and if it is faster to evaluate value and derivative at the same time
Implemented in ROOT::Math::IGradientFunctionOneDim, ROOT::Math::Polynomial, and ROOT::Math::WrappedTF1.
Referenced by FdF().
Compatibility method with multi-dimensional interface for Gradient and function evaluation.
Definition at line 290 of file IFunction.h.
Compatibility method with multi-dimensional interface for Gradient.
Definition at line 283 of file IFunction.h.