Struct sliding_features::SlidingWindow[][src]

pub struct SlidingWindow {
    pub views: Vec<Box<dyn View>>,
}

A Sliding Window holding any number of Sliding Features (Views)

Fields

views: Vec<Box<dyn View>>

A Vector of individual, chainable sliding windows (View)

Implementations

impl SlidingWindow[src]

pub fn new() -> SlidingWindow[src]

Create a new, empty SlidingWindow

pub fn update(&mut self, val: f64)[src]

Update all the Views with a new value

pub fn last(&self) -> Vec<f64>[src]

Return the last values from all Views

pub fn register_view(&mut self, view: Box<dyn View>)[src]

Add the given View

Trait Implementations

impl Clone for SlidingWindow[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.