pub struct BinSpectrum {
pub bin_hz: f64,
pub fft_size: usize,
pub db: Vec<f64>,
}Expand description
A per-bin spectrum: db[k] is the level at k * bin_hz, scaled so a full-scale sine
centred on a bin reads 0 dB.
Fields§
§bin_hz: f64§fft_size: usize§db: Vec<f64>Trait Implementations§
Source§impl Clone for BinSpectrum
impl Clone for BinSpectrum
Source§impl Debug for BinSpectrum
impl Debug for BinSpectrum
Auto Trait Implementations§
impl Freeze for BinSpectrum
impl RefUnwindSafe for BinSpectrum
impl Send for BinSpectrum
impl Sync for BinSpectrum
impl Unpin for BinSpectrum
impl UnsafeUnpin for BinSpectrum
impl UnwindSafe for BinSpectrum
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