pub struct PooledLaggedFrame {
pub frame: LaggedFrame,
pub observed_variables: Arc<[VariableId]>,
pub space_dummy_variables: Arc<[VariableId]>,
pub time_dummy_variables: Arc<[VariableId]>,
pub env_effective_rows: Arc<[usize]>,
}Expand description
Result of pooling multi-environment series into one lagged frame.
Fields§
§frame: LaggedFrameStacked frame including system/context variables and any dummy columns.
observed_variables: Arc<[VariableId]>Variable ids that were requested for pooling (system + observed context).
space_dummy_variables: Arc<[VariableId]>Synthetic space-dummy variable ids (M−1 one-hot columns), empty if off.
time_dummy_variables: Arc<[VariableId]>Synthetic time-dummy variable ids (one integer column, or T−1 one-hot columns).
env_effective_rows: Arc<[usize]>Per-environment effective row counts in stack order.
Implementations§
Source§impl PooledLaggedFrame
impl PooledLaggedFrame
Sourcepub fn all_variables(&self) -> Vec<VariableId>
pub fn all_variables(&self) -> Vec<VariableId>
All variable ids present in Self::frame (observed then space dummies then time).
Sourcepub fn is_dummy(&self, v: VariableId) -> bool
pub fn is_dummy(&self, v: VariableId) -> bool
Whether v is a synthesized dummy column.
Trait Implementations§
Source§impl Clone for PooledLaggedFrame
impl Clone for PooledLaggedFrame
Source§fn clone(&self) -> PooledLaggedFrame
fn clone(&self) -> PooledLaggedFrame
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 PooledLaggedFrame
impl RefUnwindSafe for PooledLaggedFrame
impl Send for PooledLaggedFrame
impl Sync for PooledLaggedFrame
impl Unpin for PooledLaggedFrame
impl UnsafeUnpin for PooledLaggedFrame
impl UnwindSafe for PooledLaggedFrame
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