Navigation

Operators and Keywords

Function List:

C++ API

: iqr (x)
: iqr (x, dim)

Return the interquartile range, i.e., the difference between the upper and lower quartile of the input data.

If x is a matrix, do the above for first non-singleton dimension of x.

If the optional argument dim is given, operate along this dimension.

As a measure of dispersion, the interquartile range is less affected by outliers than either range or std.

See also: range, std.

Package: octave