Skip to main content

elastic_decomposition

Function elastic_decomposition 

Source
pub fn elastic_decomposition(
    f1: &[f64],
    f2: &[f64],
    argvals: &[f64],
    lambda: f64,
) -> DecompositionResult
Expand description

Perform elastic phase-amplitude decomposition of two curves.

Returns both the alignment result and the separate amplitude and phase distances.

§Arguments

  • f1 — Target curve (length m)
  • f2 — Curve to decompose against f1 (length m)
  • argvals — Evaluation points (length m)
  • lambda — Penalty weight on warp deviation from identity (0.0 = no penalty)