clean up unused parameter in find_extrema

This commit is contained in:
jess 2026-04-02 18:19:15 -07:00
parent 95997e4fd5
commit b17d12195d
1 changed files with 1 additions and 2 deletions

View File

@ -30,7 +30,7 @@ pub fn smooth(data: &[f32], window: usize) -> Vec<f32> {
out
}
pub fn find_extrema(v: &[f32], i_smooth: &[f32], min_prominence: f32) -> Vec<(usize, bool)> {
pub fn find_extrema(_v: &[f32], i_smooth: &[f32], min_prominence: f32) -> Vec<(usize, bool)> {
let n = i_smooth.len();
if n < 3 {
return Vec::new();
@ -63,7 +63,6 @@ pub fn find_extrema(v: &[f32], i_smooth: &[f32], min_prominence: f32) -> Vec<(us
prom >= min_prominence
});
let _ = v; // voltage array available for future use
candidates
}