https://github.com/cran/fda
Tip revision: 877347f65135b34c238ac4f27de992aa38d15347 authored by J. O. Ramsay on 03 November 2009, 00:00:00 UTC
version 2.4.0
version 2.4.0
Tip revision: 877347f
polyg.Rd
\name{polyg}
\alias{polyg}
\title{
Polygonal Basis Function Values
}
\description{
Evaluates a set of polygonal basis functions, or a derivative of these
functions, at a set of arguments.
}
\usage{
polyg(x, argvals, nderiv=0)
}
\arguments{
\item{x}{
a vector of argument values at which the polygonal basis functions are to
evaluated.
}
\item{argvals}{
a strictly increasing set of argument values containing the range of x
within it that defines the polygonal basis. The default is x itself.
}
\item{nderiv}{
the order of derivative to be evaluated. The derivative must not exceed
one. The default derivative is 0, meaning that the basis functions
themselves are evaluated.
}
}
\value{
a matrix of function values. The number of rows equals the number of
arguments, and the number of columns equals the number of basis
}
\seealso{
\code{\link{create.polygonal.basis}},
\code{\link{polygpen}}
}
\examples{
# set up a set of 21 argument values
x <- seq(0,1,0.05)
# set up a set of 11 argument values
argvals <- seq(0,1,0.1)
# with the default period (1) and derivative (0)
basismat <- polyg(x, argvals)
# plot the basis functions
matplot(x, basismat, type="l")
}
% docclass is function
\keyword{smooth}