tensor_product_mfd function

Tensor product of two Multivariate Functional Data objects

Tensor product of two Multivariate Functional Data objects

This function returns the tensor product of two Multivariate Functional Data objects. Each object must contain only one replication.

tensor_product_mfd(mfdobj1, mfdobj2 = NULL)

Arguments

  • mfdobj1: A multivariate functional data object, of class mfd, having only one functional observation.
  • mfdobj2: A multivariate functional data object, of class mfd, having only one functional observation. If NULL, it is set equal to mfdobj1. Default is NULL.

Returns

An object of class bifd. If we denote with x(s)=(x_1(s),...,x_p(s)) the vector of p functions represented by mfdobj1 and with y(t)=(y_1(t),...,y_q(t)) the vector of q functions represented by mfdobj2, the output is the vector of pq bivariate functions

f(s,t)=(x_1(s)y_1(t),...,x_1(s)y_q(t), ...,x_p(s)y_1(t),...,x_p(s)y_q(t)).

Examples

library(funcharts) mfdobj1 <- data_sim_mfd(nobs = 1, nvar = 3) mfdobj2 <- data_sim_mfd(nobs = 1, nvar = 2) tensor_product_mfd(mfdobj1) tensor_product_mfd(mfdobj1, mfdobj2)
  • Maintainer: Christian Capezza
  • License: GPL-3
  • Last published: 2025-03-17