summaryrefslogtreecommitdiff
path: root/src/window_function.rs
diff options
context:
space:
mode:
authorozpv <39195175+ozpv@users.noreply.github.com>2026-05-19 01:48:04 -0500
committerGitHub <noreply@github.com>2026-05-19 01:48:04 -0500
commit0f0bc6b88fe8cb80b947e576cdfa4a7124982f54 (patch)
treefaa432745faa91a9d0583c05a7386c0d9d0a437c /src/window_function.rs
parent88bd6307ee43f3c3609d5b2f49d440d285185765 (diff)
add complement parameter
Diffstat (limited to 'src/window_function.rs')
-rw-r--r--src/window_function.rs15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/window_function.rs b/src/window_function.rs
index 3565ea7..9ae15f8 100644
--- a/src/window_function.rs
+++ b/src/window_function.rs
@@ -1,6 +1,3 @@
-#![allow(unused)]
-#![allow(dead_code)]
-
use crate::window_size::WindowSize;
use std::{collections::VecDeque, f32::consts::PI};
@@ -31,14 +28,14 @@ impl RectangularWindow {
impl WindowFunction for RectangularWindow {
fn apply(&mut self, _data: &mut VecDeque<f32>) {}
- fn reverse(&mut self, data: &mut [f32]) {}
+ fn reverse(&mut self, _data: &mut [f32]) {}
fn needed(&self) -> usize {
self.window_size
}
fn resize(&mut self, window_size: &WindowSize) {
- *self = Self::new(&window_size);
+ *self = Self::new(window_size);
}
}
@@ -160,7 +157,7 @@ impl WindowFunction for HannWindow {
}
fn resize(&mut self, window_size: &WindowSize) {
- *self = Self::new(&window_size);
+ *self = Self::new(window_size);
}
}
@@ -270,7 +267,7 @@ impl WindowFunction for HammingWindow {
}
fn resize(&mut self, window_size: &WindowSize) {
- *self = Self::new(&window_size);
+ *self = Self::new(window_size);
}
}
@@ -394,7 +391,7 @@ impl WindowFunction for BlackmanHarrisWindow {
}
fn resize(&mut self, window_size: &WindowSize) {
- *self = Self::new(&window_size);
+ *self = Self::new(window_size);
}
}
@@ -516,6 +513,6 @@ impl WindowFunction for Sine4Window {
}
fn resize(&mut self, window_size: &WindowSize) {
- *self = Self::new(&window_size);
+ *self = Self::new(window_size);
}
}