Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Numerical Data > Curve Fitting & Approximate Functions > Splines >
Mathematica > Data Manipulation > Statistics > Curve Fitting & Approximate Functions > Splines >
Mathematica > Mathematics and Algorithms > Statistics > Curve Fitting & Approximate Functions > Splines >

BSplineBasis

BSplineBasis[d, x]
gives the zeroth uniform B-spline basis function of degree d at x.
BSplineBasis[d, n, x]
gives the n^(th) uniform B-spline basis function of degree d.
BSplineBasis[{d, {u1, u2, ...}}, n, x]
gives the n^(th) non-uniform B-spline basis function of degree d with knots at positions ui.
  • Mathematical function, suitable for both symbolic and numerical manipulation.
  • BSplineBasis[d, n, x] gives B-spline basis functions that have nonzero values only within the x interval between n/(d+1) and (d+n+1)/(d+1).
  • BSplineBasis[{d, {u1, u2, ..., um}}, n, x] gives B-spline basis functions that have nonzero values only within the x interval between u1 and um.
  • The knot positions ui must form a non-decreasing sequence.
  • Possible values of n range from 0 to m-d-2.
Evaluate a uniform cubic B-spline basis numerically:
Plot it:
Evaluate the second cubic B-spline basis with given knots:
Plot all the cubic basis functions with given knots:
Symbolic derivative of B-spline basis:
Plot of the derivatives:
Evaluate a uniform cubic B-spline basis numerically:
In[1]:=
Click for copyable input
Out[1]=
 
Plot it:
In[1]:=
Click for copyable input
Out[1]=
 
Evaluate the second cubic B-spline basis with given knots:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Plot all the cubic basis functions with given knots:
In[3]:=
Click for copyable input
Out[3]=
 
Symbolic derivative of B-spline basis:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Plot of the derivatives:
In[3]:=
Click for copyable input
Out[3]=
TraditionalForm formatting:
The nonzero part of a B-spline basis function is given by the range of knots:
The sum of all B-spline bases at points within the support is always one:
At most d+1 basis functions contribute the sum where d is the degree:
BSplineBasis can be used to build up BSplineCurve:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team