2 #ifndef vnl_least_squares_cost_function_h_ 3 #define vnl_least_squares_cost_function_h_ 20 #include "vnl/vnl_export.h" 38 #endif // vnl_least_squares_cost_function_h_ An object that represents a function from R^n -> R.
virtual void gradf(vnl_vector< double > const &x, vnl_vector< double > &gradient)
Calculate the gradient of f at parameter vector x.
Abstract base for minimising functions.
double f(vnl_vector< double > const &x) override
The main function. Given the parameter vector x, compute the value of f(x).
Abstract base for minimising functions.
An adaptor that converts a vnl_least_squares_function to a vnl_cost_function.