Function sswt_extract_ridge
pub fn sswt_extract_ridge(
sst: &SSWTResult,
config: &GreedyRidgeConfig,
) -> Result<Vec<(usize, usize)>>Expand description
Greedy max-energy ridge extractor over time.
Returns Vec<(freq_bin_idx, time_idx)> of length equal to the signal
length. The walk seeds at the global SST-plane argmax, then walks
outward forward and backward from there, at each step picking the
argmax |T| inside ±band_width of the previously chosen bin. This
is the seeding strategy used by ssqueezepy’s extract_ridges; it is
more robust to CWT edge artifacts than seeding at t = 0, where the
argmax may be biased away from the true dominant ridge by FFT-zero-pad
spillover. When every bin in a local search window falls below
min_magnitude, the ridge holds its previous bin (gap-tolerant).
Returns WaveletError::TransformError if every cell in the entire
SST plane is below min_magnitude.