[][src]Trait smartcore::linalg::stats::MatrixStats

pub trait MatrixStats<T: RealNumber>: BaseMatrix<T> {
    pub fn mean(&self, axis: u8) -> Vec<T> { ... }
pub fn var(&self, axis: u8) -> Vec<T> { ... }
pub fn std(&self, axis: u8) -> Vec<T> { ... }
pub fn scale_mut(&mut self, mean: &[T], std: &[T], axis: u8) { ... } }

Defines baseline implementations for various statistical functions

Provided methods

pub fn mean(&self, axis: u8) -> Vec<T>[src]

Computes the arithmetic mean along the specified axis.

pub fn var(&self, axis: u8) -> Vec<T>[src]

Computes variance along the specified axis.

pub fn std(&self, axis: u8) -> Vec<T>[src]

Computes the standard deviation along the specified axis.

pub fn scale_mut(&mut self, mean: &[T], std: &[T], axis: u8)[src]

standardize values by removing the mean and scaling to unit variance

Loading content...

Implementors

impl<T: RealNumber> MatrixStats<T> for DenseMatrix<T>[src]

Loading content...