3 #ifndef GAUDIMATH_NUMERICALDERIVATIVE_H
4 #define GAUDIMATH_NUMERICALDERIVATIVE_H 1
14 #include "CLHEP/GenericFunctions/AbsFunction.hh"
19 namespace GaudiMathImplementation
86 ( const AbsFunction& function ,
98 virtual
unsigned int dimensionality()
const {
return m_DIM ; }
101 virtual double operator() (
double argument )
const ;
103 virtual double operator() (
const Argument& argument )
const ;
109 virtual Derivative partial (
unsigned int index )
const;
114 const AbsFunction&
function ()
const {
return *m_function ; }
116 size_t index ()
const {
return m_index ; }
124 double result ()
const {
return m_result ; }
126 double error ()
const {
return m_error ; }
131 (
const std::string& message ,
158 #endif // GAUDIMATH_NUMERICALDERIVATIVE_H
size_t index() const
index
double error() const
the absolute error estimate for the last call
const Type & type() const
type
Type
the type of numerical differentiation
Genfun::GaudiMathImplementation::NumericalDerivative Derivative
This class is used for returning status codes from appropriate routines.
const AbsFunction * m_function
Numerical derivative (using GSL adaptive numerical differentiation)
virtual bool hasAnalyticDerivative() const
Does this function have an analytic derivative?
Type
the list of available types for ntuples
double result() const
the result of the last call