powered by
Computes the mean function for an object of class mfd.
mfd
# S3 method for mfd mean(x, ...)
An object of class mfd representing the mean function. The output contains a single observation, corresponding to the mean function for each variable.
An object of class mfd, containing \(N\) observations of a \(p\)-dimensional multivariate functional variable.
Further arguments are ignored (required for S3 consistency).
The method averages the coefficient array across the observation dimension, resulting in a new mfd object with one observation (the sample mean).
mfd, plot.mfd
plot.mfd
# \donttest{ library(funcharts) data(air) mfdobj <- get_mfd_list(air) mean_result <- mean(mfdobj) plot(mean_result) # }
Run the code above in your browser using DataLab