Learn R Programming

funcharts (version 1.7.0)

mean_mfd: Mean Function for Multivariate Functional Data

Description

Computes the mean function for a multivariate functional data object of class mfd.

Usage

mean_mfd(mfdobj)

Value

An mfd object representing the mean function of the input data. The output contains one observation, representing the mean function for each dimension of the multivariate functional variable.

Arguments

mfdobj

An object of class mfd representing the multivariate functional data. It contains \(N\) observations of a \(p\)-dimensional multivariate functional variable.

Details

This function calculates the mean function for each dimension of the multivariate functional data by averaging the coefficients across all observations. The resulting object is a single observation containing the mean function for each dimension.

Examples

Run this code
if (FALSE) {
library(funcharts)
data(air)
mfdobj <- get_mfd_list(air)
mean_result <- mean_mfd(mfdobj)
plot_mfd(mean_result)
}

Run the code above in your browser using DataLab