Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

monomial

Evaluate Monomial Basis


Description

Computes the values of the powers of argument t.

Usage

monomial(evalarg, exponents=1, nderiv=0, argtrans=c(0,1))

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.

argtrans

Linearly transform an argument before constructing a basis. The first element is the shift in value and the second the scale factor.

Value

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

See Also

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, 1:basisobj$nbasis)

fda

Functional Data Analysis

v5.1.9
GPL (>= 2)
Authors
J. O. Ramsay <ramsay@psych.mcgill.ca> [aut,cre], Spencer Graves <spencer.graves@effectivedefense.org> [ctb], Giles Hooker <gjh27@cornell.edu> [ctb]
Initial release
2020-12-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.