Analyse the persistence of peaks (local maxima) across a range of regularisation strengths. As the regularisation parameter \(\lambda\) increases, aligned curves become smoother and spurious peaks disappear. This function tracks which peaks persist across the regularisation path, providing a multi-scale view of the data's peak structure.
Value
A list with components:
- lambdas
the regularisation values used
- n_peaks
integer vector of peak counts at each lambda
- peak_locations
list of numeric vectors giving peak locations at each lambda
- persistence
numeric vector of persistence scores for each peak
References
Tucker, J.D., Wu, W., and Srivastava, A. (2013). Generative models for functional data using phase and amplitude separation. Computational Statistics & Data Analysis, 61:50–66.