inprod-methods: Calculating Inner Products between Functional Data Objects

Description Usage Arguments Value Method (basis vs basis) Method (univariate function vs univariate function) Method (univariate function vs basis) Author(s)

Description

This generic function provides methods to calculate inner products between functional data objects (basis functions, univariate functions and bivariate functions).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## S4 method for signature ''basis+','basis+''
x %*% y

## S4 method for signature ''fourier+','fourier+''
x %*% y

## S4 method for signature ''bspline+','bspline+''
x %*% y

## S4 method for signature ''fd+','fd+''
x %*% y

## S4 method for signature ''fd+','basis+''
x %*% y

## S4 method for signature ''basis+','fd+''
x %*% y

Arguments

x,y

Objects of classes basis+, fd+ or bifd+.

Value

See Method (...) sections for the explanation of various types of results.

Method (basis vs basis)

x and y are two basis+ objects, not necessarily of the same type (for example, one can be bspline+ and the other be fourier+).

Assume that x contains m functions and y contains n functions, and then x %*% y returns an m by n matrix P, whose element P[i, j] is the inner product between the i-th function of x and the j-th function of y.

Method (univariate function vs univariate function)

x and y are two fd+ objects which we do not require to have the same types of basis functions.

Assume that x contains m functions and y contains n functions, and then x %*% y returns an m by n matrix P, whose element P[i, j] is the inner product between the i-th function of x and the j-th function of y.

Method (univariate function vs basis)

Assueme that x is an fd+ object and y a basis+ object (or vice versa). We do not require x to have the same basis as y.

If x contains m functions and y contains n functions, then x %*% y returns an m by n matrix P, whose element P[i, j] is the inner product between the i-th function of x and the j-th function of y.

Author(s)

Yixuan Qiu <http://statr.me/>


yixuan/fdaplus documentation built on May 4, 2019, 5:29 p.m.