pub struct Peaks { /* private fields */ }Expand description
Structure that computes stats about the peaks
§Serialization
When the serde feature is enabled, this struct can be serialized and deserialized.
This allows saving and restoring the peak statistics state.
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§
Source§impl<'de> Deserialize<'de> for Peaks
impl<'de> Deserialize<'de> for Peaks
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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