powered by
Copied from icpack/bases.R, modified diff() function for speed.
bbase_D(x, xl = min(x), xr = max(x), nseg = 10, bdeg = 3)
A matrix containing the basis
The vector of values for which the basis is to be evaluated
The left boundary of the domain
The right boundary of the domain
The number of inter-knot segments on the domain
The degree of the B-splines (2 means quadratic, 3 means cubic, and so on)
x = runif(100) B = bbase_D(x, 0, 1, 20, 3)
Run the code above in your browser using DataLab