Learn R Programming

fda (version 2.2.7)

getbasismatrix: Values of Basis Functions or their Derivatives

Description

Evaluate a set of basis functions or their derivatives at a set of argument values.

Usage

getbasismatrix(evalarg, basisobj, nderiv=0)

Arguments

evalarg
a vector of arguments values.
basisobj
a basis object.
nderiv
a nonnegative integer specifying the derivative to be evaluated.

Value

  • a matrix of basis function or derivative values. Rows correspond to argument values and columns to basis functions.

See Also

eval.fd

Examples

Run this code
# 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)

Run the code above in your browser using DataLab