clean up unused parameter in find_extrema
This commit is contained in:
parent
95997e4fd5
commit
b17d12195d
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue