pub fn elastic_align_pair(
f1: &[f64],
f2: &[f64],
argvals: &[f64],
lambda: f64,
) -> AlignmentResultExpand 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)lambda— Penalty weight on warp deviation from identity (0.0 = no penalty)
§Returns
AlignmentResult with warping function, aligned curve, and elastic distance.