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
InvalidDimensionifdatahas zero rows or zero columns, or ifBand/ModifiedBandis requested with fewer than 2 curves (a band needs two reference curves).InvalidParameterifRandomProjection { nproj: 0, .. }is requested.