Skip to contents

This function scales a `hd` object, which may consist of multivariate functional data `mvmfd` and/or `mvnfd`. The function ensures proper scaling for all components based on their respective types and returns a scaled `hd` object.

Usage

scale_hd(
  hd_obj,
  f_weight = NULL,
  nf_weight = NULL,
  mf_eval_length = NULL,
  scale_components = FALSE
)

Arguments

hd_obj

A `hd` object, which can be an `mfd`, `mvmfd`, `nfd`, `mvnfd`.

f_weight

A numeric vector of scaling factors for functional variables. The length must match number of functional variables.

nf_weight

A numeric vector of scaling factors for non-functional variables. The length must match the number of non functional variables.

mfd_eval_length

A numeric vector specifying the number of evaluation points for functional variables.

Value

A scaled high-dimensional data object of class 'Hd'.

Examples

# Example usage:
# Assuming `hd_obj` is a valid high-dimensional data object:
# scaled_hd <- scale_hd(hd_obj, mfd_eval_length = c(100, 200), weight = c(0.5, 0.8, 1.2))