pub struct SpectrumReport {
pub resolution: Resolution,
pub bands: Vec<BandLevel>,
pub bins: Option<BinSpectrum>,
pub centroid_hz: f64,
pub rolloff_hz: f64,
pub flatness: f64,
pub peak_hz: f64,
}Expand description
Result of spectrum.
Fields§
§resolution: Resolution§bands: Vec<BandLevel>§bins: Option<BinSpectrum>§centroid_hz: f64Power-weighted mean frequency.
rolloff_hz: f64Frequency below which 85% of the power lies.
flatness: f64Spectral flatness 0..1 (1 = white noise, 0 = pure tone).
peak_hz: f64Frequency of the strongest bin.
Trait Implementations§
Source§impl Clone for SpectrumReport
impl Clone for SpectrumReport
Source§impl Debug for SpectrumReport
impl Debug for SpectrumReport
Auto Trait Implementations§
impl Freeze for SpectrumReport
impl RefUnwindSafe for SpectrumReport
impl Send for SpectrumReport
impl Sync for SpectrumReport
impl Unpin for SpectrumReport
impl UnsafeUnpin for SpectrumReport
impl UnwindSafe for SpectrumReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more