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 gsrefit Aug85 "Gsurfit Package"
.ih
NAME
gsrefit -- refit with new z vector using old x, y and weight vector
.ih
SYNOPSIS
include < math/gsurfit.h>
gsrefit (sf, x, y, z, w, ier)
.nf
pointer sf # surface descriptor
real x[ARB] # x array, xmin <= x[i] <= xmax
real y[ARB] # y array, ymin <= y[i] <= ymax
real z[ARB] # array of data values
real w[ARB] # array of weights
int ier # error code
.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 w
Array of weights.
.le
.ls ier
Error code. The options are OK, SINGULAR and NO_DEG_FREEDOM. If ier =
SINGULAR a solution is computed but one or more coefficients may be zero.
If ier equals NO_DEG_FREEDOM, there are insufficient data points to
compute a solution and GSREFIT returns without solving for the coefficients.
.le
.ih
DESCRIPTION
In some applications the x, y and weight values remain unchanged from fit
to fit and only the z values vary. In this case it is redundant to
reaccumulate the matrix and perform the Cholesky factorization. GSREFIT
zeros and reaccumulates the vector on the right hand side of the matrix
equation and performs the forward and back substitution phase to fit for
a new coefficient vector.
.ih
NOTES
In the first call to GSREFIT space is allocated for the non-zero basis
functions. Subsequent calls to GSREFIT reference this array to avoid
recalculating basis functions at every call.
.ih
SEE ALSO
gsfit, gsaccum, gsacpts, gssolve
.endhelp
|