Trait nalgebra::Covariance
[−]
[src]
pub trait Covariance<M> { fn covariance(&self) -> M; fn covariance_to(&self, out: &mut M) { ... } }
Trait for computing the covariance of a set of data.
Required Methods
fn covariance(&self) -> M
Computes the covariance of the obsevations stored by m
:
- For matrices, observations are stored in its rows.
- For vectors, observations are stored in its components (thus are 1-dimensional).
Provided Methods
fn covariance_to(&self, out: &mut M)
Computes the covariance of the obsevations stored by m
:
- For matrices, observations are stored in its rows.
- For vectors, observations are stored in its components (thus are 1-dimensional).
Implementors
impl<N: BaseNum + Cast<f64> + Clone> Covariance<DMatrix<N>> for DMatrix<N>
impl<N: BaseNum + Cast<f64> + Clone> Covariance<DMatrix1<N>> for DMatrix1<N>
impl<N: BaseNum + Cast<f64> + Clone> Covariance<DMatrix2<N>> for DMatrix2<N>
impl<N: BaseNum + Cast<f64> + Clone> Covariance<DMatrix3<N>> for DMatrix3<N>
impl<N: BaseNum + Cast<f64> + Clone> Covariance<DMatrix4<N>> for DMatrix4<N>
impl<N: BaseNum + Cast<f64> + Clone> Covariance<DMatrix5<N>> for DMatrix5<N>
impl<N: BaseNum + Cast<f64> + Clone> Covariance<DMatrix6<N>> for DMatrix6<N>