Calculating and Plotting B-Spline Basis Functions
Calculating and Plotting B-Spline Basis Functions
Let be a nondecreasing sequence of real numbers, that is, ≤, . The are called knots and is the knot vector. The B-spline basis function of degree (or order ), denoted by (u), is defined as
U={,,…,}
u
0
u
1
u
m
u
i
u
i+1
i=0,…,m-1
u
i
U
th
i
p
p+1
N
i,p
N
i,0
|
and for , as
i=1,…,m-(p+1)
N
i,p
u-
u
i
u
i+p
u
i
N
i,p-1
u
i+p+1
u
i+p+1
u
i+1
N
i+1,p-1
This Demonstration assumes the knots are in order to calculate and plot the (u).
{0,0,1,1,2,3,4,4,5}
N
i,p
Details
Details
For drawing the schematic diagram of the algorithm, see[2].
References
References
[1] L. Piegl and W. Tiller, The NURBS Book, 2nd ed., Berlin: Springer-Verlag, 1997 pp. 50–51.
[2] ShutaoTang. "Drawing the Schematic Diagram of Algorithm." Mathematica Stack Exchange. (Oct 18, 2014) mathematica.stackexchange.com/questions/63471/drawing-the-schematic-diagram-of-algorithm.
[3] Michael E2. Answer to "How to Deal with the Condition = in B-Spline Basis Function?" Mathematica Stack Exchange. (Oct 15, 2014) mathematica.stackexchange.com/questions/63192/how-to-deal-with-the-condition-u-i-u-i1-in-b-spline-basis-function.
u
i
u
i+1
[4] Mr.Wizard. Answer to "A Problem about Sorting Final Result." Mathematica Stack Exchange. (Oct 18, 2014) mathematica.stackexchange.com/questions/63468/a-problem-about-sorting-final-result.
Permanent Citation
Permanent Citation
Shutao Tang
"Calculating and Plotting B-Spline Basis Functions"
http://demonstrations.wolfram.com/CalculatingAndPlottingBSplineBasisFunctions/
Wolfram Demonstrations Project
Published: November 24, 2014