A function returning the piecewise polynomial coefficients for a B-spline basis function i.e. the basis functions.
getBbasis(x, knots, degree, force = FALSE)
the knots and the piecewise polynomial coefficients for a B-spline basis function i.e. the basis functions.
a vector of data
a vector of knots in ascending order. The first and last knots must be respectively the minimum and maximum of x.
the degree of the spline
logical: skip check on knots? (not recommended!)