Skip to main content

functional_depth

Function functional_depth 

Source
pub fn functional_depth(
    data: &FdMatrix,
    method: DepthMethod,
) -> Result<Vec<f64>, FdarError>
Expand description

Compute the self-depth of every curve in data w.r.t. the sample.

Passes data as both the object and reference matrix and dispatches to the underlying depth function selected by method. Returns one depth per curve (Vec<f64> of length data.nrows()).

ยงErrors

  • InvalidDimension if data has zero rows or zero columns, or if Band/ModifiedBand is requested with fewer than 2 curves (a band needs two reference curves).
  • InvalidParameter if RandomProjection { nproj: 0, .. } is requested.