aboutsummaryrefslogtreecommitdiff
path: root/math/curfit/doc/cvaccum.hlp
blob: 4fc3a37b5b321c7e807ee4096ad42b813a46a3c1 (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
.help cvaccum Jun84 "Curfit Package"
.ih
NAME
cvaccum -- accumulate a single data point into the matrix
.ih
SYNOPSIS
include <math/curfit.h>

cvaccum (cv, x, y, weight, wtflag)

.nf
pointer	cv		# curve descriptor
real	x		# x value
real	y		# y value
real	weight		# weight
int	wtflag		# type of weighting
.fi
.ih
ARGUMENTS
.ls cv    
Pointer to the curve descriptor structure.
.le
.ls x   
X value. Checking for out of bounds x values is the responsibility of the
user.
.le
.ls y    
Y value.
.le
.ls weight   
Weight assigned to the data point.
.le
.ls wtflag
Type of weighting. The options are WTS_USER, WTS_UNIFORM or WTS_SPACING.
If wtflag equals WTS_USER the weight for each point is supplied by the user.
If wtflag is either WTS_UNIFORM or WTS_SPACING the routine sets weight
to one.
.le
.ih
DESCRIPTION
Calculate the non-zero basis functions for the given value of x.
Compute the contribution of the data point to the normal equations and
sum into the appropriate arrays and vectors.
.ih
NOTES
The WTS_SPACING option cannot be used with CVACCUM. Weights will be set
to 1.
.ih
SEE ALSO
cvfit, cvrefit
.endhelp