pub fn elastic_align_pair_constrained(
f1: &[f64],
f2: &[f64],
argvals: &[f64],
landmark_pairs: &[(f64, f64)],
lambda: f64,
) -> ConstrainedAlignmentResultExpand description
Align f2 to f1 with landmark constraints.
Landmark pairs define waypoints on the DP grid. Between consecutive waypoints, an independent smaller DP is run. The resulting warp passes through all landmarks.
§Arguments
f1— Target curve (length m)f2— Curve to align (length m)argvals— Evaluation points (length m)landmark_pairs—(target_t, source_t)pairs in increasing orderlambda— Penalty weight
§Returns
ConstrainedAlignmentResult with warp, aligned curve, and enforced landmarks.