pub fn elastic_align_pair_closed(
f1: &[f64],
f2: &[f64],
argvals: &[f64],
lambda: f64,
) -> Result<ClosedAlignmentResult, FdarError>Expand description
Align closed curve f2 to closed curve f1 with rotation search.
For closed (periodic) curves, the starting point is arbitrary. This function
searches over circular shifts of f2 to find the rotation that minimizes
the elastic distance, then performs full elastic alignment at that rotation.
§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)
§Errors
Returns FdarError::InvalidDimension if lengths do not match or m < 2.