monomial: Evaluate Monomial Basis

Description Usage Arguments Value See Also Examples

View source: R/monomial.R

Description

Computes the values of the powers of argument t.

Usage

1
monomial(evalarg, exponents, nderiv=0)

Arguments

evalarg

a vector of argument values.

exponents

a vector of nonnegative integer values specifying the powers to be computed.

nderiv

a nonnegative integer specifying the order of derivative to be evaluated.

Value

a matrix of values of basis functions. Rows correspond to argument values and columns to basis functions.

See Also

power, expon, fourier, polyg, bsplineS

Examples

1
2
3
4
5
6
# set up a monomial basis for the first five powers
nbasis   <- 5
basisobj <- create.monomial.basis(c(-1,1),nbasis)
#  evaluate the basis
tval <- seq(-1,1,0.1)
basismat <- monomial(tval, 1:basisobj$nbasis)

fda documentation built on May 2, 2019, 5:12 p.m.