pub struct Peaks { /* private fields */ }Expand description
Structure that computes stats about the peaks
Implementations§
Source§impl Peaks
impl Peaks
Sourcepub fn new(size: usize) -> SpotResult<Self>
pub fn new(size: usize) -> SpotResult<Self>
Initialize a new Peaks structure with the given size
Sourcepub fn sum_squares(&self) -> f64
pub fn sum_squares(&self) -> f64
Get the sum of squares
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Peaks
impl RefUnwindSafe for Peaks
impl Send for Peaks
impl Sync for Peaks
impl Unpin for Peaks
impl UnwindSafe for Peaks
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