Struct basic_dsp_vector::window_functions::HammingWindow [−][src]
pub struct HammingWindow<T> where
T: RealNumber, { /* fields omitted */ }
A generalized Hamming window: https://en.wikipedia.org/wiki/Window_function#Hamming_window
Methods
impl<T> HammingWindow<T> where
T: RealNumber,
[src]
impl<T> HammingWindow<T> where
T: RealNumber,
pub fn new(alpha: T) -> Self
[src]
pub fn new(alpha: T) -> Self
Creates a new Hamming window
pub fn default() -> Self
[src]
pub fn default() -> Self
Creates the default Hamming window as defined in GNU Octave.
Trait Implementations
impl<T> WindowFunction<T> for HammingWindow<T> where
T: RealNumber,
[src]
impl<T> WindowFunction<T> for HammingWindow<T> where
T: RealNumber,
fn is_symmetric(&self) -> bool
[src]
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)
. Read more
fn window(&self, n: usize, length: usize) -> T
[src]
fn window(&self, n: usize, length: usize) -> T
Calculates a point of the window function. Callers will ensure that n <= length
.
Auto Trait Implementations
impl<T> Send for HammingWindow<T>
impl<T> Send for HammingWindow<T>
impl<T> Sync for HammingWindow<T>
impl<T> Sync for HammingWindow<T>