getbasismatrix {fda} | R Documentation |
Evaluate a set of basis functions or their derivatives at a set of argument values.
getbasismatrix(evalarg, basisobj, nderiv=0)
evalarg |
a vector of arguments values. |
basisobj |
a basis object. |
nderiv |
a nonnegative integer specifying the derivative to be evaluated. |
a matrix of basis function or derivative values. Rows correspond to argument values and columns to basis functions.
# Minimal example: a B-spline of order 1, i.e., a step function # with 0 interior knots: bspl1.1 <- create.bspline.basis(norder=1, breaks=0:1) getbasismatrix(seq(0, 1, .2), bspl1.1)