diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /math/nlfit/nlstatd.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'math/nlfit/nlstatd.x')
-rw-r--r-- | math/nlfit/nlstatd.x | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/math/nlfit/nlstatd.x b/math/nlfit/nlstatd.x new file mode 100644 index 00000000..73661ce8 --- /dev/null +++ b/math/nlfit/nlstatd.x @@ -0,0 +1,26 @@ +include <math/nlfit.h> +include "nlfitdefd.h" + +# NLSTAT[RD] - Fetch an NLFIT real/double parameter + +double procedure nlstatd (nl, param) + +pointer nl # pointer to NLFIT structure +int param # parameter to be fetched + +begin + switch (param) { + case NLSUMSQ: + return (NL_SUMSQ(nl)) + case NLOLDSQ: + return (NL_OLDSQ(nl)) + case NLTOL: + return (NL_TOL(nl)) + case NLLAMBDA: + return (NL_LAMBDA(nl)) + case NLSCATTER: + return (NL_SCATTER(nl)) + default: + return (INDEFD) + } +end |