Skip to main content

modal_1d

Function modal_1d 

Source
pub fn modal_1d(
    data_obj: &[f64],
    data_ori: &[f64],
    nobj: usize,
    nori: usize,
    n_points: usize,
    h: f64,
) -> Vec<f64>
Expand description

Compute modal depth for 1D functional data.

Uses a Gaussian kernel to measure density around each curve.

ยงArguments

  • data_obj - Data to compute depth for
  • data_ori - Reference data
  • nobj - Number of objects
  • nori - Number of reference observations
  • n_points - Number of evaluation points
  • h - Bandwidth parameter