pub enum ErbSpacing {
Linear,
AppleTr35,
}Expand description
Center-frequency spacing strategy for the ERB filterbank.
Variants§
Linear
Linear spacing on the ERB scale (Glasberg & Moore, 1990).
ERB(f) = 24.7 * (4.37 * f / 1000 + 1), bands spaced uniformly in
this domain and ordered low → high. Default.
AppleTr35
Geometric spacing using the Apple TR #35 / Patterson-Holdsworth formula
(earQ=9.26449, minBW=24.7), ordered low → high.
Matches the ViSQOL C++ reference implementation exactly.
Trait Implementations§
Source§impl Clone for ErbSpacing
impl Clone for ErbSpacing
Source§fn clone(&self) -> ErbSpacing
fn clone(&self) -> ErbSpacing
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ErbSpacing
Source§impl Debug for ErbSpacing
impl Debug for ErbSpacing
Source§impl Default for ErbSpacing
impl Default for ErbSpacing
Source§fn default() -> ErbSpacing
fn default() -> ErbSpacing
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ErbSpacing
impl<'de> Deserialize<'de> for ErbSpacing
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ErbSpacing
impl PartialEq for ErbSpacing
Source§fn eq(&self, other: &ErbSpacing) -> bool
fn eq(&self, other: &ErbSpacing) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ErbSpacing
impl Serialize for ErbSpacing
impl StructuralPartialEq for ErbSpacing
Auto Trait Implementations§
impl Freeze for ErbSpacing
impl RefUnwindSafe for ErbSpacing
impl Send for ErbSpacing
impl Sync for ErbSpacing
impl Unpin for ErbSpacing
impl UnsafeUnpin for ErbSpacing
impl UnwindSafe for ErbSpacing
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