pub trait Function1: Function { // Required method fn gradient(&self, position: &[f64]) -> Vec<f64>; }
Defines an objective function f that is able to compute the first derivative f'(x).
f
f'(x)
Computes the gradient of the objective function at a given position x, i.e., ∀ᵢ ∂/∂xᵢ f(x) = ∇f(x).
position
x
∀ᵢ ∂/∂xᵢ f(x) = ∇f(x)