Uses B-spline fitting to smooth a data set.


icon

Inputs/Outputs

  • ci32.png # 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.

  • c2ddbl.png Data

    Data specifies the multi-dimension value to fit in rows.

  • c1ddbl.png 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.

  • ci32.png degree

    degree specifies the order of polynomials that form the B-spline curve and fit to the data set. The default value is 3.

  • cu16.png parameter selection

    parameter selection specifies the method that computes the interim knot vector.

    0equally spaced
    1chord length
    2centripetal (default)
  • i2ddbl.png Best BSpline Fit

    Best BSpline Fit returns the B-Spline curve that best fits the input Data in rows.

  • ii32.png 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.

  • idbl.png 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.