Skip to main content

random_projection_1d

Function random_projection_1d 

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

Compute random projection depth for 1D functional data.

Projects curves to scalars using random projections and computes average univariate depth.

ยง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
  • nproj - Number of random projections