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.