iqr

iqr(X: ndarray) float[source]

Numba interquartile range function for a 1d numpy array.

Parameters:
X1d numpy array

A 1d numpy array of values

Returns:
iqrfloat

The interquartile range of the input array

Examples

>>> import numpy as np
>>> from aeon.utils.numba.stats import iqr
>>> X = np.array([1, 2, 2, 3, 3, 3, 4, 4, 4, 4])
>>> i = iqr(X)