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

trapzmat

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

X

The first matrix of functional data object values over a fine mesh.

Y

The second matrix of functional data object values over the same fine mesh.

delta

The difference between adjacent argument values, assumed to be a constant.

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 X and the number of columns is the number of columns of Y.

See Also


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.