pub enum Weighting {
Flat,
Octave,
}Expand description
How the loss weights the STFT bins.
Variants§
Flat
Every bin the same: the bins are evenly spaced in Hz, so the octave below 100 Hz gets about 0.5% of the weight and the fit gives the low end away (the hardware-validated 0.3 loss).
Octave
Bin weights ∝ 1/f above 40 Hz (each octave counts about the same), flat from 20 to 40 Hz, nothing below 20 Hz; normalised to mean 1 per resolution.
Trait Implementations§
impl Copy for Weighting
impl Eq for Weighting
impl StructuralPartialEq for Weighting
Auto Trait Implementations§
impl Freeze for Weighting
impl RefUnwindSafe for Weighting
impl Send for Weighting
impl Sync for Weighting
impl Unpin for Weighting
impl UnsafeUnpin for Weighting
impl UnwindSafe for Weighting
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