average

@JvmName(name = "averageOfByte")
fun Array<out Byte>.average(): Double(source)
@JvmName(name = "averageOfShort")
fun Array<out Short>.average(): Double(source)
@JvmName(name = "averageOfInt")
fun Array<out Int>.average(): Double(source)
@JvmName(name = "averageOfLong")
fun Array<out Long>.average(): Double(source)
@JvmName(name = "averageOfFloat")
fun Array<out Float>.average(): Double(source)
@JvmName(name = "averageOfDouble")
fun Array<out Double>.average(): Double(source)

Returns an average value of elements in the array.

Since Kotlin

1.0

@JvmName(name = "averageOfByte")
fun Iterable<Byte>.average(): Double(source)
@JvmName(name = "averageOfShort")
fun Iterable<Short>.average(): Double(source)
@JvmName(name = "averageOfInt")
fun Iterable<Int>.average(): Double(source)
@JvmName(name = "averageOfLong")
fun Iterable<Long>.average(): Double(source)
@JvmName(name = "averageOfFloat")
fun Iterable<Float>.average(): Double(source)
@JvmName(name = "averageOfDouble")
fun Iterable<Double>.average(): Double(source)

Returns an average value of elements in the collection.

Since Kotlin

1.0