18 assert( xmin !=
nullptr );
26 double tol,
double *xmin)
28 assert( xmin !=
nullptr );
42 double *fa,
double *fb,
double *fc)
An object that represents a function from R^n -> R.
double minimize(double ax)
Find a minimum of f(x) near to ax.
double minimize_given_bounds(double ax, double bx, double cx, double tol, double *xmin)
Find the minimum value of f(x) within a<= x <= c.
double minimize_given_bounds_and_one_f(double ax, double bx, double cx, double fb)
Find the minimum value of f(x) within a<= x <= c.
double minimize_given_bounds(double ax, double bx, double cx)
Find the minimum value of f(x) within a<= x <= c.
void vnl_bracket_minimum(vnl_cost_function &fn, double &a, double &b, double &c, double &fa, double &fb, double &fc)
Given initial values a and b, find bracket a<b<c s.t. f(a)>f(b)<f(c).
double ftol
Termination tolerance on F (sum of squared residuals)
double minimize_given_bounds_and_1st_f(double ax, double bx, double fb, double cx, double tol, double *xmin)
Save time over minimize_given_bounds() if you know f(b).
Function to bracket a minimum.
void bracket_minimum(double *ax, double *bx, double *cx, double *fa, double *fb, double *fc)
Given distinct points ax, and bx, find a bracket for the minimum.
vnl_brent(vnl_cost_function *functor)
double f_at_last_minimum() const
Function evaluation at value returned by minimize(x).
void set_x_tolerance(double v)
Set the convergence tolerance on X.