pub struct CorrelationView<'a> { /* private fields */ }Expand description
Explicit R_ab(lag): left/right order, lag sign, product and normalization retained. No positivity/Hermitian/quantum-state validity or estimator is inferred.
Implementations§
Source§impl<'a> CorrelationView<'a>
impl<'a> CorrelationView<'a>
pub fn admit( tensor: TensorView<'a>, clock: Clock, first_lag: i64, lag_step: i64, product: ProductConvention, normalization: Normalization, ) -> Result<Self, Error>
Sourcepub fn lag_ticks(self, index: u32) -> Result<i64, Error>
pub fn lag_ticks(self, index: u32) -> Result<i64, Error>
Positive lag means the right observation is later than the left by this duration.
Sourcepub fn lag_seconds(self, index: u32) -> Result<ExactTime, Error>
pub fn lag_seconds(self, index: u32) -> Result<ExactTime, Error>
Exact lag duration (not an epoch timestamp).
pub fn tensor(self) -> TensorView<'a>
pub fn clock(self) -> Clock
pub fn lag_step_ticks(self) -> i64
pub fn product(self) -> ProductConvention
pub fn normalization(self) -> Normalization
Trait Implementations§
Source§impl<'a> Clone for CorrelationView<'a>
impl<'a> Clone for CorrelationView<'a>
impl<'a> Copy for CorrelationView<'a>
Auto Trait Implementations§
impl<'a> Freeze for CorrelationView<'a>
impl<'a> RefUnwindSafe for CorrelationView<'a>
impl<'a> Send for CorrelationView<'a>
impl<'a> Sync for CorrelationView<'a>
impl<'a> Unpin for CorrelationView<'a>
impl<'a> UnsafeUnpin for CorrelationView<'a>
impl<'a> UnwindSafe for CorrelationView<'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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