medianAbsoluteDeviation

Computes the median absolute deviation (median AD) of the values in this iterable.

This is the median of the absolute deviations from the median of the data. It is an extremely robust measure of spread — even more resistant to outliers than the mean absolute deviation — since both the center and spread use the median.

Example:

listOf(1.0, 2.0, 3.0, 4.0, 5.0).medianAbsoluteDeviation() // 1.0

Return

the median absolute deviation from the median.


Computes the median absolute deviation (median AD) of the values in this array.

This is the median of the absolute deviations from the median of the data.

Example:

doubleArrayOf(1.0, 2.0, 3.0, 4.0, 5.0).medianAbsoluteDeviation() // 1.0

Return

the median absolute deviation from the median.


Computes the median absolute deviation (median AD) of the values in this sequence.

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

Return

the median absolute deviation from the median.