General Polynomial Fit PtByPt (Not in Base Package)

Finds the polynomial curve values and the set of Polynomial Fit Coefficients which describe the polynomial curve that best represents the input data set.

initialize, when TRUE, initializes the internal state of the VI.
input data y is a sample point y.
input data x is a sample point x.
polynomial order must be greater than or equal to zero. If polynomial order is less than zero, the VI sets Polynomial Fit Coefficients to an empty array and returns an error. The default is 2.

0 m < n-1

where n is the number of sample points and m is the polynomial order.

algorithm specifies the algorithm the VI uses to compute Best Polynomial Fit.

0SVD (default)
1Givens
2Givens2
3Householder
4LU decomposition
5Cholesky
sample length is the length of each set of incoming data. The VI performs computation for each set of data. The default is 100. sample length must be greater than zero.
Best Polynomial Fit is the polynomial curve values that best represent the input data set.
The total number of elements in Polynomial Fit Coefficients is m + 1, where m is the polynomial order.
mse is the mean squared error.
error returns any error or warning condition from the VI. Refer to Point By Point Error Codes for more information about these conditions.