General Polynomial Fit PtByPt VI

Owning Palette: Fitting PtByPt VIs

Requires: Full Development System

Finds the polynomial curve values and the set of Polynomial Fit Coefficients which describe the polynomial curve that best represents the set of input data points specified by sample length.

This VI is similar to the General Polynomial Fit VI.

Note  By default, reentrant execution is enabled in all Point By Point VIs.

 Add to the block diagram  Find on the palette
initialize, when TRUE, initializes the internal state of the VI.
y is an input data point.
x is an input data point.
polynomial order specifies the order of the polynomial to fit to the data set. polynomial order must be greater than or equal to zero. If polynomial order is less than zero, this VI sets Polynomial Coefficients to an empty array and returns an error. The default is 2.
algorithm specifies the algorithm to use to compute the 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 returns the y-values of the polynomial curve that best fits the input values.
Polynomial Fit Coefficients returns the coefficients of the fitted model in ascending order of power. The total number of elements in Polynomial Fit Coefficients is m + 1, where m is the polynomial order.
mse is the mean square error.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.