class="resources"
Computes the coefficients that best represent the input data.
| Dialog Box Options |
| Block Diagram Inputs |
| Block Diagram Outputs |
| Parameter | Description |
|---|---|
| Model Type | Contains the following options:
|
| Results | Displays values generated for the parameters based on the options you select and values you enter. |
| Data Graph | Displays the original data and the best fit. Best fit is computed by the following equation. zi = f(xi)A where A is the best fit coefficient. |
| Residue Graph | Displays the difference between the original data and the best fit. |
| Parameter | Description |
|---|---|
| Signals | Specifies the observed values of the dependent variable. |
| Locations | Specifies the values of the independent variables. |
| error in (no error) | Describes error conditions that occur before this VI or function runs. |
| Parameter | Description |
|---|---|
| intercept | Returns the intercept of the calculated best linear fit. |
| a1 | Returns the coefficient of the first-order term. |
| best fit | Returns the fitted data. best fit is computed by the following equation. zi = f(xi)A where A is the best fit coefficient. |
| residual | Returns the difference between the original data and the best fit. |
| mean squared error | Returns the mean squared error of the best fit. |
| error out | Contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. |
| polynomial coefficients | Returns the coefficients that describe the best polynomial fit. The total number of elements in polynomial coefficients is m + 1, where m is Polynomial order. |
| slope | Returns the slope of the calculated best linear fit. |
| a0 | Returns the constant term of the calculated best quadratic fit. |
| spline interpolant | Returns the second derivative of interpolating function g(x). spline interpolant is the second derivative of interpolating function g(x) at points , i = 0, 1,…, n 1. |
| non-linear coefficients | Returns the set of coefficients of the nonlinear model that best represents the input data set in the least-squares sense. |
| general LS coefficients | Returns the set of coefficients that best represent the input data set in the least-squares sense. |
| a2 | Returns the coefficient of the second-order term. |
This Express VI uses the functionality of the following VIs and functions:
Linear Fit
Nonlinear Lev-Mar Fit
Polynomial Interpolation
Spline Interpolation