Trait nalgebra::Mean [] [src]

pub trait Mean<N> {
    fn mean(&self) -> N;
}

Trait for computing the mean of a set of data.

Required Methods

Computes the mean of the observations stored by v.

  • For matrices, observations are stored in its rows.
  • For vectors, observations are stored in its components (thus are 1-dimensional).

Implementors