mvmfd {ReMFPCA}R Documentation

Define a Set of Multivariate Multidimensional Functional Data objects

Description

The 'mvmfd' class represents functional data ...

Constructor for 'mvmfd' objects (same as 'Mvmfd')

Usage

Mvmfd(...)

Arguments

...

A 'mfd' objects which have separated by comma

Active bindings

basis

A 'mvbasismfd' object

coefs

a matrix of the coefficients.

nobs

number of observation

nvar

number of variables

Methods

Public methods


Method new()

Constructor for ‘mvmfd' objects (same as ’Mvmfd')

Usage
mvmfd$new(...)
Arguments
...

A 'mfd' objects which have separated by comma


Method eval()

Eval method for 'mvmfd' objects

Usage
mvmfd$eval(evalarg)
Arguments
evalarg

A list of numeric vectors of argument values at which the 'mvmfd' is to be evaluated.

Returns

A list of evaluated values


Method print()

Print method for 'mvmfd' objects

Usage
mvmfd$print(...)
Arguments
...

Additional arguments to be passed to 'print'


Method clone()

The objects of this class are cloneable with this method.

Usage
mvmfd$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

mvbasismfd, mfd

Examples

require(fda)
bs1 <- create.fourier.basis(c(0, 2 * pi), 5)
bs2 <- create.bspline.basis(c(0, 1), 7)
bs3 <- create.exponential.basis(c(0, 2), 3)
nobs <- 10
argval1 <- seq(0, 2 * pi, length.out = 12)
X1 <- outer(sin(argval1), seq(0.5, 1.5, length.out = nobs))
mdbs1 <- Basismfd(bs1)
mfd1 <- Mfd(argval1, X1, mdbs1)
mdbs2 <- Basismfd(bs1)
argval2 <- argval1
X2 <- outer(cos(argval2), seq(0.2, 1.5, length.out = nobs))
mfd2 <- Mfd(argval2, X2, mdbs1)
mvmfd1 <- Mvmfd(mfd1, mfd2)
mvmfd1[1]
mvmfd1[1, 1]
mvmfd1[1:5, 2]
mvmfd1[, 1]
mvmfd1[1:5, ]
evalarg <- list(argval1, argval2)
mvmfd1$eval(evalarg)
mvmfd1 + mvmfd1
mean(mvmfd1)
inprod_mvmfd(mvmfd1, mvmfd1)
norm_mvmfd(mvmfd1)
plot(mvmfd1)
bimfdplot(mvmfd1)


[Package ReMFPCA version 1.0.0 Index]