row_quantile

row_quantile(X: ndarray, q: float) ndarray[source]

Numba quantile function for a 2d numpy array.

Parameters:
X2d numpy array

A 2d numpy array of values

qfloat

The quantile to compute, must be between 0 and 1

Returns:
arr1d numpy array

The quantiles for axis 0 of the input array

Examples

>>> import numpy as np
>>> from aeon.utils.numba.stats import row_quantile
>>> X = np.array([[1, 2, 2, 3, 3, 3, 4, 4, 4, 4], [5, 6, 6, 7, 7, 7, 8, 8, 8, 8]])
>>> q = row_quantile(X, 0.5)