pub struct Spectrum {
pub frequencies: Vec<f64>,
pub magnitudes: Vec<f64>,
}Expand description
One-sided Hann-windowed tone-amplitude spectrum; not a power spectral density or calibrated band RMS measurement. Uses platform math, with report-only numerical accuracy rather than an exact rendering guarantee.
Fields§
§frequencies: Vec<f64>Bin centers in Hz: k * sample_rate / fft_size, including DC and Nyquist.
magnitudes: Vec<f64>Linear amplitudes in input-sample units, normalized by the full Hann sum.
Interior bins are doubled; DC and Nyquist are not. See spectrum.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Spectrum
impl RefUnwindSafe for Spectrum
impl Send for Spectrum
impl Sync for Spectrum
impl Unpin for Spectrum
impl UnsafeUnpin for Spectrum
impl UnwindSafe for Spectrum
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