aboutsummaryrefslogtreecommitdiff
path: root/lib/math/curfit.h
blob: 7c9d9eab2a4c73d73d7b4635cae6fc7dca261ad4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# definitions for the curfit package

# define the permitted types of curves

define	CV_FUNCTIONS	"|chebyshev|legendre|spline3|spline1|"
define	CHEBYSHEV	1
define	LEGENDRE	2
define	SPLINE3		3
define	SPLINE1		4
define	USERFNC		5
define	NTYPES		5

# define the weighting flags

define	CV_WEIGHTS	"|user|uniform|spacing|chisq|"
define	WTS_USER	1	# user enters weights
define	WTS_UNIFORM	2	# equal weights
define	WTS_SPACING	3	# weight proportional to spacing of data points
define	WTS_CHISQ	4	# chi-squared weights (input data in photons)

# error conditions

define	SINGULAR	1
define	NO_DEG_FREEDOM	2

# definitions for cvstat

define	CVTYPE		1	# curve type
define	CVORDER		2	# order
define	CVNCOEFF	3	# Number of coefficients
define	CVNSAVE		4	# Length of save buffer
define	CVXMIN		5	# minimum ordinate
define	CVXMAX		6	# maximum ordinate