pub enum Band {
Rectangular {
start: f64,
end: f64,
},
RaisedCosine {
start: f64,
end: f64,
transition: f64,
},
Kaiser {
start: f64,
end: f64,
beta: f64,
},
Gaussian {
start: f64,
end: f64,
sigma: f64,
},
}Expand description
A frequency-domain window: which bins survive a reconstruction, and how sharply the surviving band ends.
Every shape is zero outside start..=end. They differ in what happens
inside it, which is the difference between a brick-wall filter and one whose
edges do not ring.
Variants§
Rectangular
A brick wall: full pass inside the band, nothing outside it.
Fields
RaisedCosine
Raised-cosine edges of a stated width, flat in between.
Fields
Kaiser
A Kaiser shape, whose beta trades edge width against sidelobe height.
Fields
Gaussian
A Gaussian shape of a stated standard deviation, centred in the band.
Implementations§
Trait Implementations§
impl Copy for Band
impl StructuralPartialEq for Band
Auto Trait Implementations§
impl Freeze for Band
impl RefUnwindSafe for Band
impl Send for Band
impl Sync for Band
impl Unpin for Band
impl UnsafeUnpin for Band
impl UnwindSafe for Band
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more