Struct forrust::time_series::season::Season[][src]

pub struct Season { /* fields omitted */ }

represents a subset of the data

Implementations

impl Season[src]

pub fn new(series: &TimeSeries, length: usize) -> Self[src]

Takes a reference to a time series to create a Season from it Also takes the length for that season.

pub fn set_season(self, u: usize) -> Self[src]

Sets the season to be used

pub fn as_time_series(&self) -> TimeSeries[src]

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

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

Returns the set of (x, y) points that represent this season

pub fn style(&self) -> Style[src]

Returns a clone of the current style

pub fn set_style(self, style: Style) -> Self[src]

Sets the style for this Season plot

Trait Implementations

impl Plotable for Season[src]

Auto Trait Implementations

impl RefUnwindSafe for Season

impl Send for Season

impl Sync for Season

impl Unpin for Season

impl UnwindSafe for Season

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> From<T> for T[src]

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

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.