inprod_mfd: Inner products of functional data contained in 'mfd' objects.

Description Usage Arguments Details Value Examples

View source: R/00_mfd.R

Description

Inner products of functional data contained in mfd objects.

Usage

1
inprod_mfd(mfdobj1, mfdobj2 = NULL)

Arguments

mfdobj1

A multivariate functional data object of class mfd.

mfdobj2

A multivariate functional data object of class mfd. It must have the same functional variables as mfdobj1. If NULL, it is equal to mfdobj1.

Details

Note that L^2 inner products are not calculated for couples of functional data from different functional variables. This function is needed to calculate the inner product in the product Hilbert space in the case of multivariate functional data, which for each observation is the sum of the L^2 inner products obtained for each functional variable.

Value

a three-dimensional array of L^2 inner products. The first dimension is the number of functions in argument mfdobj1, the second dimension is the same thing for argument mfdobj2, the third dimension is the number of functional variables. If you sum values over the third dimension, you get a matrix of inner products in the product Hilbert space of multivariate functional data.

Examples

1
2
3
4
5
library(funcharts)
mfdobj1 <- data_sim_mfd(seed = 123)
mfdobj2 <- data_sim_mfd(seed = 987)
inprod_mfd(mfdobj1)
inprod_mfd(mfdobj1, mfdobj2)

funcharts documentation built on March 15, 2021, 5:07 p.m.