From f6b8e0eae4374f339487a33e3e4fe5462d5816e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 25 Nov 2017 10:16:00 +0100 Subject: New upstream version 2.0.0 --- numlib/dhsx.h | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) mode change 100644 => 100755 numlib/dhsx.h (limited to 'numlib/dhsx.h') diff --git a/numlib/dhsx.h b/numlib/dhsx.h old mode 100644 new mode 100755 index 828b8b2..78cdb10 --- a/numlib/dhsx.h +++ b/numlib/dhsx.h @@ -11,29 +11,23 @@ #endif /* Down hill simplex function */ -/* return err on sucess, -1.0 on failure */ -/* Result will be in cp */ -/* Arrays start at 0 */ - -/* Standard interface for optimizer function */ /* return 0 on sucess, 1 on failure due to excessive itterations */ /* Result will be in cp */ -/* Arrays start at 0 */ int dhsx( -double *rv, /* If not NULL, return the residual error */ -int di, /* Dimentionality */ -double cp[], /* Initial starting point */ -double s[], /* Size of initial search area */ -double ftol, /* Tollerance of error change to stop on */ -double atol, /* Absolute return value tollerance */ -int maxit, /* Maximum iterations allowed */ -double (*funk)(void *fdata, double tp[]), /* Error function to evaluate */ -void *fdata /* Data needed by function */ + double *rv, /* If not NULL, return the residual error */ + int di, /* Dimentionality */ + double *cp, /* Initial starting point, return minimum */ + double *s, /* Size of initial search area */ + double ftol, /* Finishing tollerance of error change */ + double athr, /* Absolute return value threshold. (Set high to not use) */ + int maxit, /* Maximum iterations allowed */ + double (*funk)(void *fdata, double *tp), /* Error function to evaluate */ + void *fdata /* Data needed by function */ ); double dhsx_funk( /* Return function value */ - void *fdata, /* Opaque data pointer */ - double tp[]); /* Multivriate input value */ + void *fdata, /* Opaque data pointer */ + double tp[]); /* Multivriate input value */ #ifdef __cplusplus } -- cgit v1.2.3