Trait nalgebra::Mean
[−]
[src]
pub trait Mean<N> { fn mean(&self) -> N; }
Trait for computing the mean of a set of data.
Required Methods
fn mean(&self) -> N
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
impl<N: BaseNum + Cast<f64> + Clone> Mean<DVector<N>> for DMatrix<N>
impl<N: BaseNum + Cast<f64> + Clone> Mean<DVector1<N>> for DMatrix1<N>
impl<N: BaseNum + Cast<f64> + Clone> Mean<DVector2<N>> for DMatrix2<N>
impl<N: BaseNum + Cast<f64> + Clone> Mean<DVector3<N>> for DMatrix3<N>
impl<N: BaseNum + Cast<f64> + Clone> Mean<DVector4<N>> for DMatrix4<N>
impl<N: BaseNum + Cast<f64> + Clone> Mean<DVector5<N>> for DMatrix5<N>
impl<N: BaseNum + Cast<f64> + Clone> Mean<DVector6<N>> for DMatrix6<N>
impl<N: BaseFloat + Cast<f64>> Mean<N> for DVector<N>
impl<N: BaseFloat + Cast<f64>> Mean<N> for DVector1<N>
impl<N: BaseFloat + Cast<f64>> Mean<N> for DVector2<N>
impl<N: BaseFloat + Cast<f64>> Mean<N> for DVector3<N>
impl<N: BaseFloat + Cast<f64>> Mean<N> for DVector4<N>
impl<N: BaseFloat + Cast<f64>> Mean<N> for DVector5<N>
impl<N: BaseFloat + Cast<f64>> Mean<N> for DVector6<N>
impl<N: BaseFloat + Cast<f64>> Mean<N> for Vector1<N>
impl<N: BaseFloat + Cast<f64>> Mean<N> for Vector2<N>
impl<N: BaseFloat + Cast<f64>> Mean<N> for Vector3<N>
impl<N: BaseFloat + Cast<f64>> Mean<N> for Vector4<N>
impl<N: BaseFloat + Cast<f64>> Mean<N> for Vector5<N>
impl<N: BaseFloat + Cast<f64>> Mean<N> for Vector6<N>
impl<N: BaseNum + Cast<f64> + Clone> Mean<Vector1<N>> for Matrix1<N>
impl<N: BaseNum + Cast<f64> + Clone> Mean<Vector2<N>> for Matrix2<N>
impl<N: BaseNum + Cast<f64> + Clone> Mean<Vector3<N>> for Matrix3<N>
impl<N: BaseNum + Cast<f64> + Clone> Mean<Vector4<N>> for Matrix4<N>
impl<N: BaseNum + Cast<f64> + Clone> Mean<Vector5<N>> for Matrix5<N>
impl<N: BaseNum + Cast<f64> + Clone> Mean<Vector6<N>> for Matrix6<N>