Skip to main content

functional_spatial_1d

Function functional_spatial_1d 

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

Compute Functional Spatial Depth for 1D functional data.

Uses L2 norm with Simpson’s integration weights to match R’s depth.FSD().

§Arguments

  • data_obj - Data to compute depth for (nobj x n_points)
  • data_ori - Reference data (nori x n_points)
  • argvals - Optional evaluation grid; if None, uses uniform [0,1] grid