Skip to main content

kernel_functional_spatial

Function kernel_functional_spatial 

Source
pub fn kernel_functional_spatial(
    data_obj: &FdMatrix,
    data_ori: &FdMatrix,
    argvals: Option<&[f64]>,
    h: f64,
    dim: Dim,
) -> Vec<f64>
Expand description

Compute Kernel Functional Spatial Depth (KFSD), dispatching on Dim.

RKHS-based depth. Dim::One uses Simpson’s weights derived from argvals; Dim::Two uses uniform weights over the flattened surface grid (matching the former kernel_functional_spatial_2d).

§Arguments

  • data_obj - Data to compute depth for
  • data_ori - Reference data
  • argvals - Evaluation grid for Dim::One (Some); ignored for Dim::Two (pass None)
  • h - Kernel bandwidth
  • dim - Dimensionality selector (Dim::One or Dim::Two)