Struct rolling_norm::Series
source · [−]Expand description
Implements a ring buffer of length N that continuously and efficiently computes useful information such as mean and variance, or the minimum and maximum values.
All operations, except initialization, take time O(1).
The buffer can be accessed using indexing, where rolling[0] is the latest value, rolling[1], is the value inserted before, and so on.
Implementations
Trait Implementations
impl<R: Copy + Real, const N: usize> Copy for Series<R, N>
Auto Trait Implementations
impl<R, const N: usize> RefUnwindSafe for Series<R, N> where
R: RefUnwindSafe,
impl<R, const N: usize> Send for Series<R, N> where
R: Send,
impl<R, const N: usize> Sync for Series<R, N> where
R: Sync,
impl<R, const N: usize> Unpin for Series<R, N> where
R: Unpin,
impl<R, const N: usize> UnwindSafe for Series<R, N> where
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more