get_mfd_array function

Get Multivariate Functional Data from a three-dimensional array

Get Multivariate Functional Data from a three-dimensional array

get_mfd_array( data_array, grid = NULL, n_basis = 30, n_order = 4, basisobj = NULL, Lfdobj = 2, lambda = NULL, lambda_grid = 10^seq(-10, 1, length.out = 10), ncores = 1 )

Arguments

  • data_array: A three-dimensional array. The first dimension corresponds to argument values, the second to replications, and the third to variables within replications.
  • grid: See get_mfd_list.
  • n_basis: See get_mfd_list.
  • n_order: #' See get_mfd_list.
  • basisobj: #' See get_mfd_list.
  • Lfdobj: #' See get_mfd_list.
  • lambda: See get_mfd_list.
  • lambda_grid: See get_mfd_list.
  • ncores: Deprecated. See get_mfd_list.

Returns

An object of class mfd. See also ?mfd for additional details on the multivariate functional data class.

Examples

library(funcharts) library(fda) data("CanadianWeather") mfdobj <- get_mfd_array(CanadianWeather$dailyAv[, 1:10, ], lambda = 1e-5) plot_mfd(mfdobj)

See Also

get_mfd_list, get_mfd_df

  • Maintainer: Christian Capezza
  • License: GPL-3
  • Last published: 2025-03-17