#include <math.h>#include "gnn_utilities.h"#include "gnn_line_search.h"Include dependency graph for gnn_line_search.c:

Go to the source code of this file.
Functions | |
| int | gnn_line_search_bracket (gnn_line *line, size_t s, size_t n, double *ax, double *bx, double *cx, double *fa, double *fb, double *fc) |
| Bracketing procedure. | |
| double | gnn_line_search_golden (gnn_line *line, size_t s, size_t n, double ax, double bx, double cx, double *xmin, double tol) |
| Bracketing procedure. | |
| double | gnn_line_search_brent (gnn_line *line, size_t s, size_t n, double ax, double bx, double cx, double *xmin, double tol) |
| Bracketing procedure. | |
| double | gnn_line_search_charalambous (gnn_line *line, size_t s, size_t n, double ax, double bx, double cx, double *xmin, double tol) |
| Simple line search procedure. | |
| double | gnn_line_search_simple (gnn_line *line, size_t s, size_t n, double ax, double bx, double cx, double *xmin, double tol) |
| Simple line search procedure. | |
|
||||||||||||||||||||||||||||||||||||||||
|
Given a Evaluations. buffer, and given distinct initial points ax and bx, this routine searches in the downhill direction (defined by the function associated to line as evaluated at the initial points) and returns new points ax, bx, cx that bracket a minimum of the function. Also returned are the function values at the three points, fa, fb, and fc. [Adapted from Numerical Recipes in C.]
Definition at line 90 of file gnn_line_search.c. |
|
||||||||||||||||||||||||||||||||||||
|
Given a Evaluations. buffer line, and given a bracketing triplet of abscissas ax, bx, cx (such that bx is between ax and cx, and
Definition at line 323 of file gnn_line_search.c. |
|
||||||||||||||||||||||||||||||||||||
|
Given a Evaluations. buffer line, and given a bracketing triplet of abscissas ax, bx, cx (such that bx is between ax and cx, and f(bx) is less than both f(ax) and f(cx)), this routine performs a golden section search for the minimum error, isolating it to a fractional precision of about tol. The abscissa of the minimum is returned as xmin, and the minimum function value is returned as golden, the returned function value. [Adapted from Numerical Recipes in C.]
Definition at line 226 of file gnn_line_search.c. |
1.2.18