aboutsummaryrefslogtreecommitdiff
path: root/lib/math/surfit.h
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 /lib/math/surfit.h
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'lib/math/surfit.h')
-rw-r--r--lib/math/surfit.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/math/surfit.h b/lib/math/surfit.h
new file mode 100644
index 00000000..7b6de492
--- /dev/null
+++ b/lib/math/surfit.h
@@ -0,0 +1,21 @@
+# SURFIT.H -- Global defines for the surface fitting package.
+
+# Permitted types of curves.
+
+define SF_FUNCTIONS "|legendre|chebyshev|spline3|spline1|"
+define SF_LEGENDRE 1
+define SF_CHEBYSHEV 2
+define SF_SPLINE3 3
+define SF_SPLINE1 4
+define SF_NTYPES 4
+
+# Weighting flags
+
+define SF_WEIGHTS "|user|uniform|"
+define SF_USER 1 # user enters weights
+define SF_UNIFORM 2 # equal weights, weight 1.0
+
+# Error conditions
+
+define SINGULAR 1 # matrix is singular
+define NO_DEG_FREEDOM 2 # insufficient number of data points