40#include "gsl/gsl_deriv.h"
78 if (
this == &rhs)
return *
this;
131 return d.EvalCentral(
x[icoord],
h);
140 return d.EvalCentral(p[ipar],
h);
148 return d.EvalCentral(p[ipar],
h);
Class for computing numerical derivative of a function.
void SetFunction(const IGenFunction &f)
Set the function for calculating the derivatives.
GSLDerivator * fDerivator
double Result() const
return the result of the last derivative calculation
virtual ~Derivator()
destructor
double EvalBackward(double x, double h=1E-8) const
Computes the numerical derivative at a point x using an adaptive backward difference algorithm with a...
int Status() const
return the error status of the last derivative calculation
Derivator & operator=(const Derivator &)
Derivator()
Empty Construct for a Derivator class Need to set the function afterwards with Derivator::SetFunction...
double Error() const
return the estimate of the absolute error of the last derivative calculation
double Eval(double x, double h=1E-8) const
Computes the numerical derivative of a function f at a point x.
double EvalCentral(double x, double h=1E-8) const
Computes the numerical derivative at a point x using an adaptive central difference algorithm with a ...
double EvalForward(double x, double h=1E-8) const
Computes the numerical derivative at a point x using an adaptive forward difference algorithm with a ...
Class for computing numerical derivative of a function based on the GSL numerical algorithm This clas...
void SetFunction(const IGenFunction &f)
Set the function for calculating the derivatives.
double Result() const
return the result of the last derivative calculation
double EvalForward(double x, double h)
Computes the numerical derivative at a point x using an adaptive forward difference algorithm with a ...
double EvalCentral(double x, double h)
Computes the numerical derivative at a point x using an adaptive central difference algorithm with a ...
double Error() const
return the estimate of the absolute error of the last derivative calculation
int Status() const
return the error status of the last integral calculation
double EvalBackward(double x, double h)
Computes the numerical derivative at a point x using an adaptive backward difference algorithm with a...
Class for adapting any C++ functor class to C function pointers used by GSL.
Documentation for the abstract class IBaseFunctionMultiDim.
Interface (abstract class) for generic functions objects of one-dimension Provides a method to evalua...
Specialized IParamFunction interface (abstract class) for one-dimensional parametric functions It is ...
OneDimMultiFunctionAdapter class to wrap a multidimensional function in one dimensional one.
OneDimParamFunctionAdapter class to wrap a multi-dim parameteric function in one dimensional one.
Namespace for new Math classes and functions.
double(* GSLFuncPointer)(double, void *)
Function pointer corresponding to gsl_function signature.