Trait basic_dsp::window_functions::WindowFunction
source · [−]pub trait WindowFunction<T>: Syncwhere
T: RealNumber,{
fn is_symmetric(&self) -> bool;
fn window(&self, n: usize, length: usize) -> T;
}
Expand description
A window function for FFT windows. See https://en.wikipedia.org/wiki/Window_function
for details. Window functions should document if they aren’t applicable for
Inverse Fourier Transformations.
The contract for window functions is as follows:
- The second argument is of the function is always
vector.points()
and the possible values for the first argument ranges from0..vector.points()
. - All real return values are allowed
Required Methods
sourcefn is_symmetric(&self) -> bool
fn is_symmetric(&self) -> bool
Indicates whether this function is symmetric around the y axis or not.
Symmetry is defined as self.window(x) == self.window(-x)
.