Computes the elastic template mean of repeated curves by iteratively aligning every curve to the current mean and averaging the aligned curves. Because the phase variability is removed before averaging, peaks are preserved rather than blurred out (unlike a naive cross-curve mean).
Arguments
- curves
A list of numeric curves of the same length, or a matrix whose columns are curves.
- t
Optional grid (defaults to 0..1).
- iterations
Number of refinement iterations (default: 5).
- max_step
Maximum DP step for the pure-R solver (default: 6).
- use_fdasrvf
As in
elasticAlign().
Value
A list with the elastic mean curve, the warpings (a
matrix, one column per curve), and the aligned curves.