Skip to main content

elastic_align_pair

Function elastic_align_pair 

Source
pub fn elastic_align_pair(
    f1: &[f64],
    f2: &[f64],
    argvals: &[f64],
) -> AlignmentResult
Expand description

Align curve f2 to curve f1 using the elastic framework.

Computes the optimal warping γ such that f2∘γ is as close as possible to f1 in the elastic (Fisher-Rao) metric.

§Arguments

  • f1 — Target curve (length m)
  • f2 — Curve to align (length m)
  • argvals — Evaluation points (length m)

§Returns

AlignmentResult with warping function, aligned curve, and elastic distance.