https://github.com/cran/fda
Raw File
Tip revision: 229f7206c9196b18bb88d6ee7c3c775e8b28e5d3 authored by J. O. Ramsay on 01 June 2009, 00:00:00 UTC
version 2.1.3
Tip revision: 229f720
monomial.Rd
\name{monomial}
\alias{monomial}
\title{
  Evaluate Monomial Basis
}
\description{
Computes the values of the powers of argument t.
}
\usage{
monomial(evalarg, exponents, nderiv=0)
}
\arguments{
\item{evalarg}{
a vector of argument values.
}
\item{exponents}{
a vector of nonnegative integer values specifying the
powers to be computed.
}
\item{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.
}
\seealso{
\code{\link{polynom}}, 
\code{\link{power}}, 
\code{\link{expon}}, 
\code{\link{fourier}}, 
\code{\link{polyg}}, 
\code{\link{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, 1:basisobj$nbasis)

}
% docclass is function
\keyword{smooth}
back to top