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