License: MIT
This crate finds peaks inside of 1-D signals (vectors of PartialOrd
satisfying types) using topological persistance.
Here's a simple example:
rust
let tst_vec:Vec<f32> = (0..6001)
.map(|x| ((x as f32 / 1000_f32) * PI).sin())
.collect();
let homologies = find_homologies(&tst_vec);
let x = get_peaks(&homologies);
// x == [500, 2500, 4500, 6000]