aboutsummaryrefslogtreecommitdiff
path: root/math/nlfit/nlstat.gx
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /math/nlfit/nlstat.gx
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'math/nlfit/nlstat.gx')
-rw-r--r--math/nlfit/nlstat.gx30
1 files changed, 30 insertions, 0 deletions
diff --git a/math/nlfit/nlstat.gx b/math/nlfit/nlstat.gx
new file mode 100644
index 00000000..c17d5940
--- /dev/null
+++ b/math/nlfit/nlstat.gx
@@ -0,0 +1,30 @@
+include <math/nlfit.h>
+$if (datatype == r)
+include "nlfitdefr.h"
+$else
+include "nlfitdefd.h"
+$endif
+
+# NLSTAT[RD] - Fetch an NLFIT real/double parameter
+
+PIXEL procedure nlstat$t (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 ($INDEF$T)
+ }
+end