pub enum WindowFunction {
Blackman,
BlackmanHarris,
Hamming,
Hann,
Nuttall,
BlackmanNuttall,
FlatTop,
Bartlett,
Triangular,
Rectangular,
Kaiser {
beta: f32,
},
}
Expand description
Enumeration of the available window functions.
Variants§
Blackman
Blackman window: A taper formed by using the first three terms of a summation of cosines. Good for low sidelobe level.
BlackmanHarris
Blackman-Harris window: A generalization of the Blackman window, offering improved spectral leakage performance.
Hamming
Hamming window: A raised cosine window, minimizing the nearest side lobe, widely used for spectrum analysis.
Hann
Hann window: A window function that represents a single cosine taper, minimizing the width of the main lobe.
Nuttall
Nuttall window: A window function with very low side lobes, good for applications requiring high dynamic range.
BlackmanNuttall
Blackman-Nuttall window: A window function combining Blackman and Nuttall, providing low side lobes.
FlatTop
Flat top window: A window designed for accurate amplitude measurements with very low ripple in the passband. More Info
Bartlett
Bartlett window: A triangular window that is zero at each end, tapering linearly to a peak in the middle.
Triangular
Triangular window: Similar to the Bartlett window but not necessarily zero at the edges, useful for simple applications.
Rectangular
Rectangular window: A simple window function with no tapering, equivalent to not windowing at all.
Kaiser
Kaiser window: A parameterized window function that provides a trade-off
between main lobe width and side lobe level.
The beta
parameter controls the shape of the window.
Trait Implementations§
Source§impl Clone for WindowFunction
impl Clone for WindowFunction
Source§fn clone(&self) -> WindowFunction
fn clone(&self) -> WindowFunction
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more