mean

abstract fun <T : Number, D : Dimension> mean(a: MultiArray<T, D>): Double

Returns the arithmetic mean of the a elements.


abstract fun <T : Number, D : Dimension, O : Dimension> mean(a: MultiArray<T, D>, axis: Int): NDArray<Double, O>

Returns the arithmetic mean of the a elements along the given axis.