https://github.com/cran/fda
Tip revision: 52a4b636dd74475964d17920308f4b3a550dd599 authored by James Ramsay on 09 March 2024, 03:50:02 UTC
version 6.1.8
version 6.1.8
Tip revision: 52a4b63
trapzmat.Rd
\name{trapzmat}
\alias{trapzmat}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Approximate the functional inner product of two functional data objects using the
trapezpoidal rule over a fine mesh of value.
}
\description{
The first two arguments are matrices of values of two functional data objects
of the same fine mesh of argument values. The mesh is assumed to be equally spaced.}
\usage{
trapzmat(X,Y,delta=1,wt=rep(1,n))
}
\arguments{
\item{X}{The first matrix of functional data object values over a fine mesh.}
\item{Y}{The second matrix of functional data object values over the same fine mesh.}
\item{delta}{The difference between adjacent argument values, assumed to
be a constant.}
\item{wt}{An optional vector of weights for the products of pairs of argument
values, otherwise assumed to be all ones.}
}
\value{
A matrix of approximate inner products. The number of rows the number of
columns of \code{X} and the number of columns is the number of columns of
\code{Y}.
}
\references{
Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009),
\emph{Functional data analysis with R and Matlab}, Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2005),
\emph{Functional Data Analysis, 2nd ed.}, Springer, New York.
Ramsay, James O., and Silverman, Bernard W. (2002),
\emph{Applied Functional Data Analysis}, Springer, New York.
}
\seealso{
\code{\link{inprod}},
\code{\link{inprod.bspline}}
}