meanAbsoluteDeviation

Computes the mean absolute deviation (MAD) of the values in this iterable.

The MAD is the average of the absolute deviations from the mean. It is a robust measure of spread that is less sensitive to outliers than standard deviation.

Example:

listOf(1.0, 2.0, 3.0, 4.0, 5.0).meanAbsoluteDeviation() // 1.2

Return

the mean absolute deviation from the mean.


Computes the mean absolute deviation (MAD) of the values in this array.

The MAD is the average of the absolute deviations from the mean.

Example:

doubleArrayOf(1.0, 2.0, 3.0, 4.0, 5.0).meanAbsoluteDeviation() // 1.2

Return

the mean absolute deviation from the mean.


Computes the mean absolute deviation (MAD) of the values in this sequence.

The sequence is materialized internally. See DoubleArray.meanAbsoluteDeviation for details.

Return

the mean absolute deviation from the mean.