pub struct LaggedLinearPair {
pub n: usize,
pub coef: f64,
pub lag: u32,
pub seed: u64,
}Expand description
Two-variable lagged linear SCM: Y_t = coef * X_{t-lag} + noise.
Fields§
§n: usizeSeries length.
coef: f64Coupling coefficient.
lag: u32Lag of X → Y.
seed: u64Master seed for deterministic noise streams.
Implementations§
Source§impl LaggedLinearPair
impl LaggedLinearPair
Sourcepub fn simulate(&self) -> Result<(TimeSeriesData, KnownLaggedParent), DataError>
pub fn simulate(&self) -> Result<(TimeSeriesData, KnownLaggedParent), DataError>
Trait Implementations§
Source§impl Clone for LaggedLinearPair
impl Clone for LaggedLinearPair
Source§fn clone(&self) -> LaggedLinearPair
fn clone(&self) -> LaggedLinearPair
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 LaggedLinearPair
impl Debug for LaggedLinearPair
Auto Trait Implementations§
impl Freeze for LaggedLinearPair
impl RefUnwindSafe for LaggedLinearPair
impl Send for LaggedLinearPair
impl Sync for LaggedLinearPair
impl Unpin for LaggedLinearPair
impl UnsafeUnpin for LaggedLinearPair
impl UnwindSafe for LaggedLinearPair
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