Evaluate Monomial Basis
monomial |
Language Reference for FDA Library
|
Evaluate Monomial Basis
DESCRIPTION:
Computes the values of the powers of argument t.
USAGE:
monomial(evalarg, exponents=1:nbasis, nderiv=0)
REQUIRED ARGUMENTS:
- evalarg
-
a vector of argument values.
OPTIONAL ARGUMENTS:
- 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:
polynom, power, expon, fourier, polyg, bsplineS
EXAMPLES:
# 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, basisobj)