Skip to main content

elastic_align_pair_constrained

Function elastic_align_pair_constrained 

Source
pub fn elastic_align_pair_constrained(
    f1: &[f64],
    f2: &[f64],
    argvals: &[f64],
    landmark_pairs: &[(f64, f64)],
    lambda: f64,
) -> ConstrainedAlignmentResult
Expand 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 order
  • lambda — Penalty weight

§Returns

ConstrainedAlignmentResult with warp, aligned curve, and enforced landmarks.