powered by
Evaluate the B-spline basis function at the x value(s).
x
bsbases(x, knots, ord)
Numerical value or vector. The value(s) at which to evaluate the B spline bases.
Numerical vector. The knot positions/sites of the B-spline bases.
An integer >=1. The order of the B-spline bases. Equals degree plus 1.
A numerical matrix of length(x) rows and length(knots)-ord columns.
length(x)
length(knots)-ord
de Boor, C. (2001) A Practical Guide to Splines. Revised Edition. Springer: New York.
splineDesign
# NOT RUN { kns <- c(rep(0,4),1:4*0.2,rep(1,4)) round(bsbases(0:5/5,kns,2),10) round(splines::splineDesign(kns,0:5/5,2),10) # }
Run the code above in your browser using DataLab