pub struct SpectralResult {
pub peaks: Vec<SpectralBin>,
pub flatness: f64,
pub dominant_frequency: f64,
pub total_power: f64,
}Expand description
FFT-based spectral analysis result.
Fields§
§peaks: Vec<SpectralBin>Top 10 spectral peaks by power.
flatness: f64Spectral flatness (Wiener entropy): 1.0 = white noise, 0.0 = tonal.
dominant_frequency: f64Dominant frequency (normalized, 0.0–0.5).
total_power: f64Total spectral power.
Trait Implementations§
Source§impl Clone for SpectralResult
impl Clone for SpectralResult
Source§fn clone(&self) -> SpectralResult
fn clone(&self) -> SpectralResult
Returns a duplicate of the value. Read more
1.0.0 · 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 SpectralResult
impl Debug for SpectralResult
Auto Trait Implementations§
impl Freeze for SpectralResult
impl RefUnwindSafe for SpectralResult
impl Send for SpectralResult
impl Sync for SpectralResult
impl Unpin for SpectralResult
impl UnsafeUnpin for SpectralResult
impl UnwindSafe for SpectralResult
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