pub struct TimeSeriesData { /* private fields */ }Expand description
Temporal / time-series dataset with time index metadata.
Implementations§
Source§impl TimeSeriesData
impl TimeSeriesData
Sourcepub fn try_new(
storage: OwnedColumnarStorage,
time_index: TimeIndex,
) -> Result<Self, DataError>
pub fn try_new( storage: OwnedColumnarStorage, time_index: TimeIndex, ) -> Result<Self, DataError>
Sourcepub fn from_f64_columns<'a, S>(
columns: impl IntoIterator<Item = (S, &'a [f64])>,
interval_ns: u64,
) -> Result<Self, DataError>
pub fn from_f64_columns<'a, S>( columns: impl IntoIterator<Item = (S, &'a [f64])>, interval_ns: u64, ) -> Result<Self, DataError>
Build a regularly sampled series from named f64 columns.
§Errors
Propagates TabularData::from_f64_columns errors.
Sourcepub fn time_index(&self) -> &TimeIndex
pub fn time_index(&self) -> &TimeIndex
Time index metadata.
Sourcepub fn storage(&self) -> &OwnedColumnarStorage
pub fn storage(&self) -> &OwnedColumnarStorage
Borrow storage.
Sourcepub fn with_analysis_mask(
&self,
mask: ValidityBitmap,
) -> Result<Self, DataError>
pub fn with_analysis_mask( &self, mask: ValidityBitmap, ) -> Result<Self, DataError>
Restrict analysis to rows where mask is valid, intersected (AND) with any existing
analysis mask; preserves columns, validity, weights, and time index.
§Errors
Mask length mismatch.
Source§impl TimeSeriesData
impl TimeSeriesData
Sourcepub fn plan_lagged_sample(
&self,
max_lag: u32,
columns: impl Into<Arc<[LaggedColumn]>>,
) -> Result<LaggedSamplePlan, DataError>
pub fn plan_lagged_sample( &self, max_lag: u32, columns: impl Into<Arc<[LaggedColumn]>>, ) -> Result<LaggedSamplePlan, DataError>
Trait Implementations§
Source§impl Clone for TimeSeriesData
impl Clone for TimeSeriesData
Source§fn clone(&self) -> TimeSeriesData
fn clone(&self) -> TimeSeriesData
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 moreSource§impl Debug for TimeSeriesData
impl Debug for TimeSeriesData
Source§impl TableView for TimeSeriesData
impl TableView for TimeSeriesData
Source§fn schema(&self) -> &CausalSchema
fn schema(&self) -> &CausalSchema
Immutable causal schema.
Source§fn column(&self, id: VariableId) -> Result<ColumnView<'_>, DataError>
fn column(&self, id: VariableId) -> Result<ColumnView<'_>, DataError>
Column view for
id. Read moreSource§fn float64_values(&self, id: VariableId) -> Result<Vec<f64>, DataError>
fn float64_values(&self, id: VariableId) -> Result<Vec<f64>, DataError>
Copy a column into an owned
f64 buffer. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for TimeSeriesData
impl !UnwindSafe for TimeSeriesData
impl Freeze for TimeSeriesData
impl Send for TimeSeriesData
impl Sync for TimeSeriesData
impl Unpin for TimeSeriesData
impl UnsafeUnpin for TimeSeriesData
Blanket Implementations§
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