2 #ifndef vnl_cost_function_h_ 3 #define vnl_cost_function_h_ 21 #include "vnl/vnl_export.h" 49 int get_number_of_unknowns()
const {
return dim; }
55 virtual double reported_error(
double f_value) {
return f_value; }
64 void set_number_of_unknowns(
int number_of_unknowns) { dim=number_of_unknowns; }
70 #endif // vnl_cost_function_h_ An object that represents a function from R^n -> R.
virtual Return f(Argument const &i)=0
Apply the function.
Abstract 1D map between two types (read spaces).