pub struct DiffMatrix<F: Float> {
pub d: Array2<F>,
pub d_indices: Array2<usize>,
pub n_obs: usize,
}Expand description
A structure to retain absolute differences computation used to compute covariance matrix
Fields§
§d: Array2<F>Differences as (n_obs * (n_obs-1))/2, nx) array
d_indices: Array2<usize>Indices of the differences in the original data array
n_obs: usizeNumber of observations
Implementations§
Source§impl<F: Float> DiffMatrix<F>
impl<F: Float> DiffMatrix<F>
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for DiffMatrix<F>
impl<F> RefUnwindSafe for DiffMatrix<F>where
F: RefUnwindSafe,
impl<F> Send for DiffMatrix<F>
impl<F> Sync for DiffMatrix<F>
impl<F> Unpin for DiffMatrix<F>
impl<F> UnwindSafe for DiffMatrix<F>where
F: RefUnwindSafe,
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> 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