Expand description
Elastic alignment and SRSF (Square-Root Slope Function) transforms.
This module provides phase-amplitude separation for functional data via the elastic framework. Key capabilities:
srsf_transform/srsf_inverse— SRSF representation and reconstructionelastic_align_pair— Pairwise curve alignment via dynamic programmingelastic_distance— Elastic (Fisher-Rao) distance between curvesalign_to_target— Align a set of curves to a common targetkarcher_mean— Karcher (Fréchet) mean in the elastic metricelastic_self_distance_matrix/elastic_cross_distance_matrix— Distance matricesreparameterize_curve/compose_warps— Warping utilities
Structs§
- Alignment
Quality - Comprehensive alignment quality assessment.
- Alignment
Result - Result of aligning one curve to another.
- Alignment
Result Nd - Result of aligning multidimensional (R^d) curves.
- Alignment
SetResult - Result of aligning a set of curves to a common target.
- Constrained
Alignment Result - Result of landmark-constrained elastic alignment.
- Decomposition
Result - Result of elastic phase-amplitude decomposition.
- Karcher
Mean Result - Result of the Karcher mean computation.
- Tsrvf
Result - Result of the TSRVF transform.
Enums§
- Transport
Method - Method for transporting tangent vectors on the Hilbert sphere.
Functions§
- align_
to_ target - Align all curves in
datato a single target curve. - alignment_
quality - Compute comprehensive alignment quality metrics.
- amplitude_
distance - Compute the amplitude distance between two curves (= elastic distance after alignment).
- amplitude_
self_ distance_ matrix - Compute the symmetric amplitude distance matrix (= elastic self distance matrix).
- compose_
warps - Compose two warping functions:
(γ₁ ∘ γ₂)(t) = γ₁(γ₂(t)). - elastic_
align_ pair - Align curve f2 to curve f1 using the elastic framework.
- elastic_
align_ pair_ constrained - elastic_
align_ pair_ nd - Align an R^d curve f2 to f1 using the elastic framework.
- elastic_
align_ pair_ with_ landmarks - Align f2 to f1 with automatic landmark detection and elastic constraints.
- elastic_
cross_ distance_ matrix - Compute the elastic distance matrix between two sets of curves.
- elastic_
decomposition - Perform elastic phase-amplitude decomposition of two curves.
- elastic_
distance - Compute the elastic distance between two curves.
- elastic_
distance_ nd - Elastic distance between two R^d curves.
- elastic_
self_ distance_ matrix - Compute the symmetric elastic distance matrix for a set of curves.
- karcher_
mean - pairwise_
consistency - Measure pairwise alignment consistency via triplet checks.
- phase_
distance_ pair - Compute the phase distance between two curves (geodesic distance of optimal warp from identity).
- phase_
self_ distance_ matrix - Compute the symmetric phase distance matrix for a set of curves.
- reparameterize_
curve - Reparameterize a curve by a warping function.
- srsf_
inverse - Reconstruct a curve from its SRSF representation.
- srsf_
inverse_ nd - Reconstruct an R^d curve from its SRSF.
- srsf_
transform - Compute the Square-Root Slope Function (SRSF) transform.
- srsf_
transform_ nd - tsrvf_
from_ alignment - Compute TSRVF from a pre-computed Karcher mean alignment.
- tsrvf_
from_ alignment_ with_ method - Compute TSRVF from a pre-computed Karcher mean with configurable transport.
- tsrvf_
inverse - Reconstruct aligned curves from TSRVF tangent vectors.
- tsrvf_
transform - Full TSRVF pipeline: compute Karcher mean, then transport SRSFs to tangent space.
- tsrvf_
transform_ with_ method - Full TSRVF pipeline with configurable transport method.
- warp_
complexity - Compute warp complexity: geodesic distance from a warp to the identity.
- warp_
smoothness - Compute warp smoothness (bending energy): ∫(γ’’)² dt.