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
Diagnostic - Diagnostic information for a single curve’s alignment.
- Alignment
Diagnostic Summary - Summary of diagnostics across all curves.
- 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.
- Diagnostic
Config - Configuration for alignment diagnostics.
- Elastic
Cluster Config - Configuration for elastic k-means clustering.
- Elastic
Cluster Result - Result of elastic k-means clustering.
- Elastic
Dendrogram - Result of hierarchical elastic clustering (dendrogram).
- Karcher
Mean Result - Result of the Karcher mean computation.
- Lambda
CvConfig - Configuration for lambda cross-validation.
- Lambda
CvResult - Result of lambda cross-validation.
- Orbit
Representative - A canonical representative of a shape orbit.
- Phase
Boxplot - Result of computing a phase (warping) box plot.
- Shape
Distance Result - Result of computing the elastic shape distance between two curves.
- Shape
Mean Result - Result of computing the shape mean of a set of curves.
- Tsrvf
Result - Result of the TSRVF transform.
- Warp
Statistics - Statistics computed on a set of warping functions.
Enums§
- Elastic
Cluster Method - Linkage method for elastic clustering.
- Shape
Quotient - Quotient space for shape analysis.
- Transport
Method - Method for transporting tangent vectors on the Hilbert sphere.
- Warp
Penalty Type - Penalty type for alignment regularization.
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)). - cut_
dendrogram - Cut a dendrogram to produce k clusters.
- diagnose_
alignment - Diagnose alignment quality for every curve after a Karcher mean computation.
- diagnose_
pairwise - Diagnose a single pairwise alignment.
- elastic_
align_ pair - Align curve f2 to curve f1 using the elastic framework.
- elastic_
align_ pair_ constrained - Align f2 to f1 with landmark constraints.
- elastic_
align_ pair_ nd - Align an R^d curve f2 to f1 using the elastic framework.
- elastic_
align_ pair_ penalized - Align two curves with a configurable penalty type.
- 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_
hierarchical - Hierarchical elastic clustering using Fisher-Rao distances.
- elastic_
kmeans - Elastic k-means clustering using Fisher-Rao distances and Karcher means.
- elastic_
self_ distance_ matrix - Compute the symmetric elastic distance matrix for a set of curves.
- invert_
warp - Compute the inverse of a warping function.
- karcher_
mean - Compute the Karcher (Frechet) mean in the elastic metric.
- lambda_
cv - Select the best elastic-alignment regularisation parameter via K-fold cross-validation.
- orbit_
representative - Compute the canonical orbit representative of a curve.
- pairwise_
consistency - Measure pairwise alignment consistency via triplet checks.
- phase_
boxplot - Compute a phase box plot from a set of warping functions.
- 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.
- shape_
distance - Compute the elastic shape distance between two curves.
- shape_
mean - Compute the Karcher (Frechet) mean in the elastic shape space.
- shape_
self_ distance_ matrix - Compute the pairwise shape distance matrix for a set of curves.
- 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 - Compute the SRSF transform for multidimensional (R^d) curves.
- 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_
inverse_ error - Verify roundtrip accuracy: max |γ(γ⁻¹(t)) - t| over the domain.
- warp_
smoothness - Compute warp smoothness (bending energy): ∫(γ’’)² dt.
- warp_
statistics - Compute summary statistics for a set of warping functions.