average

@JvmName(name = "averageOfByte")
fun ByteArray.average(): Double(source)
@JvmName(name = "averageOfShort")
fun ShortArray.average(): Double(source)
@JvmName(name = "averageOfInt")
fun IntArray.average(): Double(source)
@JvmName(name = "averageOfLong")
fun LongArray.average(): Double(source)
@JvmName(name = "averageOfFloat")
fun FloatArray.average(): Double(source)
@JvmName(name = "averageOfDouble")
fun DoubleArray.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