average
fun <T, S : Group<T>, ScaleOperations<T>> S.average(data: Iterable<T>): T
Content copied to clipboard
Returns an average value of elements in the iterable in this Group.
Receiver
the algebra that provides addition and division.
Return
the average value.
Author
Iaroslav Postovalov
Parameters
data
the iterable to find average.
fun <T, S : Group<T>, ScaleOperations<T>> S.average(data: Sequence<T>): T
Content copied to clipboard
Returns an average value of elements in the sequence in this Group.
Receiver
the algebra that provides addition and division.
Return
the average value.
Author
Iaroslav Postovalov
Parameters
data
the sequence to find average.