pub struct MultiSeriesContext {
pub matrix: ColumnarMatrix,
}Expand description
Time-aligned context for multi-series analysis.
Constructed by providing raw per-series data possibly at different sampling rates; the context resamples and aligns them to a common timeline.
Fields§
§matrix: ColumnarMatrixAligned columnar data matrix.
Implementations§
Source§impl MultiSeriesContext
impl MultiSeriesContext
Sourcepub fn build(
series: Vec<(String, Vec<i64>, Vec<f64>)>,
max_series: Option<usize>,
) -> Result<Self, MultivariateError>
pub fn build( series: Vec<(String, Vec<i64>, Vec<f64>)>, max_series: Option<usize>, ) -> Result<Self, MultivariateError>
Builds a context from individual series data.
Each entry in series is (id, timestamps, values).
All series will be resampled to the finest common interval via linear
interpolation.
max_points overrides the default resampling cap (1 000 000). Pass
None to use the default.
Trait Implementations§
Source§impl Clone for MultiSeriesContext
impl Clone for MultiSeriesContext
Source§fn clone(&self) -> MultiSeriesContext
fn clone(&self) -> MultiSeriesContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MultiSeriesContext
impl RefUnwindSafe for MultiSeriesContext
impl Send for MultiSeriesContext
impl Sync for MultiSeriesContext
impl Unpin for MultiSeriesContext
impl UnsafeUnpin for MultiSeriesContext
impl UnwindSafe for MultiSeriesContext
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more