Package smile.math
Interface DifferentiableFunction
- All Superinterfaces:
Function
,Serializable
A differentiable function is a function whose derivative exists at each point
in its domain.
-
Method Summary
-
Method Details
-
g
double g(double x) Computes the gradient/derivative at x.- Parameters:
x
- a real number.- Returns:
- the derivative.
-
g2
default double g2(double x) Compute the second-order derivative at x.- Parameters:
x
- a real number.- Returns:
- the second-order derivative.
-