.help gsacpts Aug85 "Gsurfit Package" .ih NAME gsacpts -- accumulate an array of data points into the fit .ih SYNOPSIS include 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