5 #ifndef BPP_NUMERIC_FUNCTION_TWOPOINTSNUMERICALDERIVATIVE_H 6 #define BPP_NUMERIC_FUNCTION_TWOPOINTSNUMERICALDERIVATIVE_H 72 throw Exception(
"Second order derivative not avalaible with two points method.");
77 throw Exception(
"Unimplemented cross derivative.");
85 #endif // BPP_NUMERIC_FUNCTION_TWOPOINTSNUMERICALDERIVATIVE_H
double getValue() const override
Get the value of the function at the current point.
virtual ~TwoPointsNumericalDerivative()
TwoPointsNumericalDerivative(std::shared_ptr< FunctionInterface > function)
Numerical derivative function wrapper, partial implementation.
The parameter list object.
TwoPointsNumericalDerivative * clone() const override
Create a copy of this object and send a pointer to it.
void updateDerivatives(const ParameterList ¶meters) override
Compute derivatives.
double getSecondOrderDerivative(const std::string &variable1, const std::string &variable2) const override
Get the value of the cross derivative of the function according to a given set of parameters...
Exception base class. Overload exception constructor (to control the exceptions mechanism). Destructor is already virtual (from std::exception)
TwoPointsNumericalDerivative(std::shared_ptr< FirstOrderDerivable > function)
Two points numerical derivative function wrapper.
double getSecondOrderDerivative(const std::string &variable) const override
Get the second order derivative of the function at the current point.