Struct forrust::time_series::merger::Merger[][src]

pub struct Merger {
    pub series: TimeSeries,
    pub data: Vec<(f64, f64)>,
    // some fields omitted
}

Merges multiple time series into one, but can only merge time series of the same length or the same multiple. the point is: it will always yield complete seasons if you use a season on the as_time_series method with the same length as the base. Once time series have been merged they can only be separated using season, but this doesnt affect the merger. but don’t worry, merger only uses clones ;)

If you just need to append data to an existing time series then used the push func in the time series, you dumb thing.

Fields

series: TimeSeriesdata: Vec<(f64, f64)>

Implementations

impl Merger[src]

pub fn new(base: &TimeSeries) -> Self[src]

Creates a new Merger using a timeseries as a base, or first season

pub fn merge_with(self, series: &TimeSeries) -> Self[src]

pub fn merge_len(&self) -> usize[src]

Returns the lenght that any time series to merge must have (the base length)

pub fn len(&self) -> usize[src]

Returns the total length of the timeseries merged

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

Auto Trait Implementations

impl RefUnwindSafe for Merger

impl Send for Merger

impl Sync for Merger

impl Unpin for Merger

impl UnwindSafe for Merger

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.