Struct forrust::time_series::merger::Merger [−][src]
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: TimeSeries
data: 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,