Go to the source code of this file.
Functions | |
| void | _powell_linmin (double *p, double *xi, int n, double *fret, int *itnr) |
| double | _powell_brent (double ax, double bx, double cx, double tol, double *xmin, int *itnr, int dim) |
| double | _powell_f1dim (double x, int dim) |
| void | _powell_mnbrak (double *ax, double *bx, double *cx, double *fa, double *fb, double *fc, int dim) |
| double | _powell_sqr (double x) |
| void | _powell_shft (double *a, double *b, double *c, double *d) |
| double | _powell_fmax (double a, double b) |
| int | powell (double *p, double *delta, int parNr, double ftol, int *iterNr, double *fret, double(*_fun)(int, double *, void *), void *fundata, int verbose) |
Variables | |
| int | POWELL_LINMIN_MAXIT = 100 |
| int | _powell_ncom |
| double | _powell_pcom [MAX_PARAMETERS] |
| double | _powell_xicom [MAX_PARAMETERS] |
| double(* | _powellFunc )(int, double *, void *) |
| void * | _powellFuncData |
| int | _powell_func_calls |
| double _powell_brent | ( | double | ax, |
| double | bx, | ||
| double | cx, | ||
| double | tol, | ||
| double * | xmin, | ||
| int * | itnr, | ||
| int | dim | ||
| ) |
Definition at line 219 of file powell.c.
References _powell_f1dim(), and _powell_shft().
Referenced by _powell_linmin().
| double _powell_f1dim | ( | double | x, |
| int | dim | ||
| ) |
Definition at line 261 of file powell.c.
References _powell_func_calls, _powell_ncom, _powell_pcom, _powell_xicom, _powellFuncData, and MAX_PARAMETERS.
Referenced by _powell_brent(), and _powell_mnbrak().
| double _powell_fmax | ( | double | a, |
| double | b | ||
| ) |
Definition at line 83 of file powell.c.
Referenced by _powell_mnbrak().
| void _powell_linmin | ( | double * | p, |
| double * | xi, | ||
| int | n, | ||
| double * | fret, | ||
| int * | itnr | ||
| ) |
Definition at line 206 of file powell.c.
References _powell_brent(), _powell_mnbrak(), _powell_ncom, _powell_pcom, and _powell_xicom.
Referenced by powell().
| void _powell_mnbrak | ( | double * | ax, |
| double * | bx, | ||
| double * | cx, | ||
| double * | fa, | ||
| double * | fb, | ||
| double * | fc, | ||
| int | dim | ||
| ) |
Definition at line 271 of file powell.c.
References _powell_f1dim(), _powell_fmax(), and _powell_shft().
Referenced by _powell_linmin().
| void _powell_shft | ( | double * | a, |
| double * | b, | ||
| double * | c, | ||
| double * | d | ||
| ) |
Definition at line 82 of file powell.c.
Referenced by _powell_brent(), and _powell_mnbrak().
| double _powell_sqr | ( | double | x | ) |
| int powell | ( | double * | p, |
| double * | delta, | ||
| int | parNr, | ||
| double | ftol, | ||
| int * | iterNr, | ||
| double * | fret, | ||
| double(*)(int, double *, void *) | _fun, | ||
| void * | fundata, | ||
| int | verbose | ||
| ) |
Powell function minimization routine.
| p | Initial guess and final set of parameters |
| delta | Initial changes for parameters, ==0 if fixed |
| parNr | Nr of parameters |
| ftol | Fractional tolerance (for WSS); 0<ftol<1 |
| iterNr | Max nr of iterations, and nr of required iters |
| fret | Function return value (WSS) at minimum |
| _fun | Function to minimize (must return the WSS) |
| fundata | Pointer to data which is passed on to the function; NULL if not needed |
| verbose | Verbose level; if zero, then nothing is printed into stdout or stderr |
Definition at line 92 of file powell.c.
References _powell_func_calls, _powell_linmin(), _powell_ncom, _powell_sqr(), _powellFunc, _powellFuncData, MAX_PARAMETERS, and POWELL_LINMIN_MAXIT.
Referenced by bootstrap(), test_powell(), and tgo().
Definition at line 71 of file powell.c.
Referenced by _powell_f1dim(), and powell().
| int _powell_ncom |
Definition at line 67 of file powell.c.
Referenced by _powell_f1dim(), _powell_linmin(), and powell().
| double _powell_pcom[MAX_PARAMETERS] |
Definition at line 68 of file powell.c.
Referenced by _powell_f1dim(), and _powell_linmin().
| double _powell_xicom[MAX_PARAMETERS] |
Definition at line 68 of file powell.c.
Referenced by _powell_f1dim(), and _powell_linmin().
| double(* _powellFunc)(int, double *, void *) |
| void* _powellFuncData |
Definition at line 70 of file powell.c.
Referenced by _powell_f1dim(), and powell().
| int POWELL_LINMIN_MAXIT = 100 |
1.8.0