tensor_product_mfd {funcharts} | R Documentation |
Tensor product of two Multivariate Functional Data objects
Description
This function returns the tensor product of two Multivariate Functional Data objects. Each object must contain only one replication.
Usage
tensor_product_mfd(mfdobj1, mfdobj2 = NULL)
Arguments
mfdobj1 |
A multivariate functional data object, of class |
mfdobj2 |
A multivariate functional data object, of class |
Value
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)
[Package funcharts version 1.5.0 Index]