pub fn elastic_depth(
data: &FdMatrix,
argvals: &[f64],
lambda: f64,
) -> Result<ElasticDepthResult, FdarError>Expand description
Compute amplitude + phase decomposed elastic depth.
For each curve, the depth is defined as an inverse-average-distance
formulation (lens depth): depth_i = 1 / (1 + mean_dist_to_others).
The combined depth is the geometric mean of amplitude and phase depths.
§Arguments
data— Functional data matrix (n x m)argvals— Evaluation points (length m)lambda— Roughness penalty for elastic alignment (0.0 = no penalty)
§Errors
Returns FdarError::InvalidDimension if argvals length does not match m
or n < 2.