blob: 1e253c61afd1282f6956a32535e9e66108084c39 (
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
56
|
.help gsacpts Aug85 "Gsurfit Package"
.ih
NAME
gsacpts -- accumulate an array of data points into the fit
.ih
SYNOPSIS
include <math/gsurfit.h>
gsacpts (sf, x, y, z, weight, npts, wtflag)
.nf
pointer sf # surface descriptor
real x[npts] # x values, xmin <= x <= xmax
real y[npts] # y values, ymin <= y <= ymax
real z[npts] # z values
real weight[npts] # array of weights
int npts # the number of data points
int wtflag # type of weighting
.fi
.ih
ARGUMENTS
.ls sf
Pointer to the surface descriptor structure.
.le
.ls x, y
Array of x and y values.
.le
.ls z
Array of data values.
.le
.ls weight
The weights assigned to the data points.
.le
.ls npts
The number of data points.
.le
.ls wtflag
Type of weighting. The options are WTS_USER and WTS_UNIFORM. If wtflag
equals WTS_USER the weight for each data point is supplied by the user.
If wtflag equals WTS_UNIFORM the routine sets the weight to 1.
The weight definitions are contained in the package header file gsurfit.h.
.le
.ih
DESCRIPTION
GSACCUM calculates the non-zero basis functions for the given x and
y values, computes the contribution of each data point to the normal
equations and sums that contribution into the appropriate arrays and
vectors.
.ih
NOTES
Checking for out of bounds x and y values and INDEF valued data points is
the responsibility of the calling program.
.ih
SEE ALSO
gsaccum, gsfit, gsrefit
.endhelp
|