Skip to main content

elastic_align_pair_nd

Function elastic_align_pair_nd 

Source
pub fn elastic_align_pair_nd(
    f1: &FdCurveSet,
    f2: &FdCurveSet,
    argvals: &[f64],
    lambda: f64,
) -> AlignmentResultNd
Expand description

Align an R^d curve f2 to f1 using the elastic framework.

Finds the optimal warping γ (shared across all dimensions) such that f2∘γ is as close as possible to f1 in the elastic metric.

§Arguments

  • f1 — Target curves (d dimensions)
  • f2 — Curves to align (d dimensions)
  • argvals — Evaluation points (length m)
  • lambda — Penalty weight (0.0 = no penalty)