aboutsummaryrefslogtreecommitdiff
path: root/math/nlfit/nlstatr.x
diff options
context:
space:
mode:
Diffstat (limited to 'math/nlfit/nlstatr.x')
-rw-r--r--math/nlfit/nlstatr.x26
1 files changed, 26 insertions, 0 deletions
diff --git a/math/nlfit/nlstatr.x b/math/nlfit/nlstatr.x
new file mode 100644
index 00000000..c6360017
--- /dev/null
+++ b/math/nlfit/nlstatr.x
@@ -0,0 +1,26 @@
+include <math/nlfit.h>
+include "nlfitdefr.h"
+
+# NLSTAT[RD] - Fetch an NLFIT real/double parameter
+
+real procedure nlstatr (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 (INDEFR)
+ }
+end