blob: dc891ed2abc0746b8882532326d29afc31b0e71b (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
.help cvinit Jun84 "Curfit Package"
.ih
NAME
cvinit -- initialise curve descriptor
.ih
SYNOPSIS
include <math/curfit.h>
cvinit (cv, curve_type, order, xmin, xmax)
.nf
pointer cv # curve descriptor
int curve_type # the fitting function
int order # order of the fit
real xmin # minimum x value
real xmax # maximum x value
.fi
.ih
ARGUMENTS
.ls cv
Pointer to the curve descriptor structure.
.le
.ls curve_type
Fitting function.
Permitted values are LEGENDRE and CHEBYSHEV, for Legendre and
Chebyshev polynomials and SPLINE3 and SPLINE1 for a cubic spline
and linear spline with uniformly spaced
break points.
.le
.ls order
Order of the polynomial to be fit or the number of polynomial pieces
to be fit by a cubic spline. Order must be greater than or equal to one.
If curve_type is set to LEGENDRE or CHEBYSHEV and order equals one, a constant
term is fit to the data.
.le
.ls xmax, xmin
Minimum and maximum x values. All x values of interest
including the data x values and the x values of any curve to be evaluated
must fall in the range xmin <= x <= xmax. Checking for out of bounds x
values is the responsibility of user.
.le
.ih
DESCRIPTION
Allocate space for the curve descriptor structure and the arrays and
vectors used by the numerical routines. Initialize all arrays and vectors
to zero. Return the
curve descriptor to the calling routine.
.ih
NOTES
CVINIT must be the first CURFIT routine called. CVINIT returns if an
illegal curve type is requested.
.ih
SEE ALSO
cvfree
.endhelp
|