pub struct LeadLagCrossCorrelationOutput {
pub lag: i64,
pub correlation: f64,
}Expand description
Output of LeadLagCrossCorrelation: the lead/lag offset and its correlation.
Fields§
§lag: i64The offset k ∈ [−max_lag, max_lag] that maximises |corr(a[t], b[t+k])|.
A positive lag means a leads b by lag samples (a’s pattern
shows up in b that many steps later); a negative lag means b
leads a; 0 means the two are most correlated contemporaneously.
correlation: f64The (signed) Pearson correlation at that lag, in [−1, +1].
Trait Implementations§
Source§impl Clone for LeadLagCrossCorrelationOutput
impl Clone for LeadLagCrossCorrelationOutput
Source§fn clone(&self) -> LeadLagCrossCorrelationOutput
fn clone(&self) -> LeadLagCrossCorrelationOutput
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 PartialEq for LeadLagCrossCorrelationOutput
impl PartialEq for LeadLagCrossCorrelationOutput
Source§fn eq(&self, other: &LeadLagCrossCorrelationOutput) -> bool
fn eq(&self, other: &LeadLagCrossCorrelationOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LeadLagCrossCorrelationOutput
impl StructuralPartialEq for LeadLagCrossCorrelationOutput
Auto Trait Implementations§
impl Freeze for LeadLagCrossCorrelationOutput
impl RefUnwindSafe for LeadLagCrossCorrelationOutput
impl Send for LeadLagCrossCorrelationOutput
impl Sync for LeadLagCrossCorrelationOutput
impl Unpin for LeadLagCrossCorrelationOutput
impl UnsafeUnpin for LeadLagCrossCorrelationOutput
impl UnwindSafe for LeadLagCrossCorrelationOutput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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