mean.mfd: Mean Function for Multivariate Functional Data

View source: R/00_mfd.R

mean.mfdR Documentation

Mean Function for Multivariate Functional Data

Description

Computes the mean function for an object of class mfd.

Usage

## S3 method for class 'mfd'
mean(x, ...)

Arguments

x

An object of class mfd, containing N observations of a p-dimensional multivariate functional variable.

...

Further arguments are ignored (required for S3 consistency).

Details

The method averages the coefficient array across the observation dimension, resulting in a new mfd object with one observation (the sample mean).

Value

An object of class mfd representing the mean function. The output contains a single observation, corresponding to the mean function for each variable.

See Also

mfd, plot.mfd

Examples


library(funcharts)
data(air)
mfdobj <- get_mfd_list(air)
mean_result <- mean(mfdobj)
plot(mean_result)



funcharts documentation built on Dec. 12, 2025, 5:06 p.m.