Skip to main content

modal

Function modal 

Source
pub fn modal(
    data_obj: &FdMatrix,
    data_ori: &FdMatrix,
    h: f64,
    dim: Dim,
) -> Vec<f64>
Expand description

Compute modal depth for 1D or 2D functional data via a unified Dim dispatch.

The 2D path never diverged from the 1D one, so both Dim arms forward to modal_1d. The dim argument makes caller intent explicit and provides a single future seam should a real 2D specialization ever be needed.

ยงArguments

  • data_obj - Data to compute depth for
  • data_ori - Reference data
  • h - Bandwidth parameter
  • dim - Dimensionality selector (Dim::One or Dim::Two)