aboutsummaryrefslogtreecommitdiff
path: root/math/nlfit/nlstatd.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /math/nlfit/nlstatd.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'math/nlfit/nlstatd.x')
-rw-r--r--math/nlfit/nlstatd.x26
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