41 #ifndef BPP_NUMERIC_FUNCTION_TWOPOINTSNUMERICALDERIVATIVE_H
42 #define BPP_NUMERIC_FUNCTION_TWOPOINTSNUMERICALDERIVATIVE_H
105 throw Exception(
"Second order derivative not avalaible with two points method.");
110 throw Exception(
"Unimplemented cross derivative.");
Numerical derivative function wrapper, partial implementation.
This is the abstract class for first order derivable functions.
Exception base class. Overload exception constructor (to control the exceptions mechanism)....
This is the function abstract class.
The parameter list object.
Two points numerical derivative function wrapper.
virtual ~TwoPointsNumericalDerivative()
double getSecondOrderDerivative(const std::string &variable) const
Get the second order derivative of the function at the current point.
double getValue() const
Get the value of the function at the current point.
TwoPointsNumericalDerivative(Function *function)
void updateDerivatives(const ParameterList parameters)
Compute derivatives.
TwoPointsNumericalDerivative * clone() const
Create a copy of this object and send a pointer to it.
double getSecondOrderDerivative(const std::string &variable1, const std::string &variable2) const
Get the value of the cross derivative of the function according to a given set of parameters.
TwoPointsNumericalDerivative(DerivableFirstOrder *function)