Skip to main content

AlignmentOutput

Trait AlignmentOutput 

Source
pub trait AlignmentOutput {
    // Required methods
    fn mean(&self) -> &[f64];
    fn mean_srsf(&self) -> &[f64];
    fn aligned_data(&self) -> &FdMatrix;
    fn gammas(&self) -> &FdMatrix;
    fn converged(&self) -> bool;
    fn n_iter(&self) -> usize;
}
Expand description

Common interface for alignment results, enabling interchangeable alignment methods in downstream analysis (elastic FPCA, regression, etc.).

Required Methods§

Source

fn mean(&self) -> &[f64]

The estimated mean/template curve (length m).

Source

fn mean_srsf(&self) -> &[f64]

The mean SRSF (length m).

Source

fn aligned_data(&self) -> &FdMatrix

The aligned curves (n × m).

Source

fn gammas(&self) -> &FdMatrix

The warping functions (n × m).

Source

fn converged(&self) -> bool

Whether the algorithm converged.

Source

fn n_iter(&self) -> usize

Number of iterations performed.

Implementors§