stdDev

Returns the population standard deviation of this list.

Equal to the square root of variance.

Throws

if the list is empty.


@JvmName(name = "stdDevOfInt")
fun List<Int>.stdDev(): Double

Returns the population standard deviation of this list.

Delegates to the List of Double overload after widening each element.

Throws

if the list is empty.


@JvmName(name = "stdDevOfLong")
fun List<Long>.stdDev(): Double

Returns the population standard deviation of this list.

Delegates to the List of Double overload after widening each element, which loses precision above 2^53.

Throws

if the list is empty.