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

1D B-Spline Fit VI
The 1D B-Spline Fit VI calculates Best BSpline Fit X and Best BSpline Fit Y by minimizing the residue according to the following equation:
where N is the length of Y, wi is the ith element of Weight, (xi,yi) is the ith pair of the input sequences (X, Y), (x'i,y'i) is the ith pair of (Best BSpline Fit X, Best BSpline Fit Y), and the norm symbols (||) on both sides of the function compute the l2 norm of a vector. The standard B-Spline basis functions construct the B-Spline curve (x'i,y'i).
The following illustration shows a typical B-Spline Fit result.

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.
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Mathematics\Fitting\B Spline Fitting Demo.vi