nD B-Spline Fit VI
- Updated2025-07-30
- 3 minute(s) read
Uses B-spline fitting to smooth a data set.

Inputs/Outputs
# of control points
—
# of control points specifies the number of control points that fit to the data set. # of control points must be greater than degree. The default is 10.
Data
—
Data specifies the multi-dimension value to fit in rows.
Weight
—
Weight is the array of weights for the input data. Weight must be the same size as the number of rows in Data. Weight also must contain non-zero elements. If an element in Weight is less than 0, the VI uses the absolute value of the element. If you do not wire an input to Weight, the VI sets all elements of Weight to 1.
degree
—
degree specifies the order of polynomials that form the B-spline curve and fit to the data set. The default value is 3.
parameter selection
—
parameter selection specifies the method that computes the interim knot vector.
Best BSpline Fit
—
Best BSpline Fit returns the B-Spline curve that best fits the input Data in rows.
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.
residue
—
residue returns the weighted mean square error of the fitted model. |
nD B-Spline Fit VI
The nD B-Spline Fit VI calculates the Best BSpline Fit by minimizing the residue according to the following equation:
where Di is the ith row of Data and D'i is the ith row of Best BSpline Fit.
# of control points
—
Data
—
Weight
—
parameter selection
—
Best BSpline Fit
—
error
—
residue
—