Navigation

Operators and Keywords

Function List:

C++ API

: range (x)
: range (x, dim)

Return the range, i.e., the difference between the maximum and the minimum of the input data.

If x is a vector, the range is calculated over the elements of x. If x is a matrix, the range is calculated over each column of x.

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

The range is a quickly computed measure of the dispersion of a data set, but is less accurate than iqr if there are outlying data points.

See also: iqr, std.

Package: octave