Skip to main content

shape_self_distance_matrix

Function shape_self_distance_matrix 

Source
pub fn shape_self_distance_matrix(
    data: &FdMatrix,
    argvals: &[f64],
    quotient: ShapeQuotient,
    lambda: f64,
) -> Result<FdMatrix, FdarError>
Expand description

Compute the pairwise shape distance matrix for a set of curves.

Pre-processes all curves according to the quotient type, then delegates to the elastic self-distance matrix computation.

§Arguments

  • data — Functional data matrix (n x m).
  • argvals — Evaluation points (length m).
  • quotient — Which transformations to factor out.
  • lambda — Roughness penalty for alignment.

§Errors

Returns FdarError::InvalidDimension if argvals length does not match m.