average

abstract fun <T : Number, D : Dimension> average(a: MultiArray<T, D>, weights: MultiArray<T, D>? = null): Double

Returns the weighted average over the a elements and weights elements.