pub struct HarmonicError {
pub order: usize,
pub wdf_dbc: f64,
pub golden_dbc: f64,
pub error_db: f64,
pub scored: bool,
}Expand description
One harmonic’s level, WDF vs golden, expressed in dBc (relative to the fundamental) so it is level-independent by construction.
Fields§
§order: usizeHarmonic order (2..=5).
wdf_dbc: f64WDF harmonic level relative to its own fundamental, dB.
golden_dbc: f64Golden harmonic level relative to its own fundamental, dB.
error_db: f64|wdf_dbc − golden_dbc|, the level-independent per-harmonic residual.
scored: boolTrue when the GOLDEN harmonic is above HARMONIC_FLOOR_DBC (present,
not noise). Only scored harmonics feed the verdict.
Trait Implementations§
Source§impl Clone for HarmonicError
impl Clone for HarmonicError
Source§fn clone(&self) -> HarmonicError
fn clone(&self) -> HarmonicError
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 moreSource§impl Debug for HarmonicError
impl Debug for HarmonicError
Source§impl<'de> Deserialize<'de> for HarmonicError
impl<'de> Deserialize<'de> for HarmonicError
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
Auto Trait Implementations§
impl Freeze for HarmonicError
impl RefUnwindSafe for HarmonicError
impl Send for HarmonicError
impl Sync for HarmonicError
impl Unpin for HarmonicError
impl UnsafeUnpin for HarmonicError
impl UnwindSafe for HarmonicError
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