row_slope¶
- row_slope(X: ndarray) ndarray[source]¶
Numba slope function for a 2d numpy array.
- Parameters:
- X2d numpy array
A 2d numpy array of values
- Returns:
- arr1d numpy array
The slope for axis 0 of the input array
Examples
>>> import numpy as np >>> from aeon.utils.numba.stats import row_slope >>> X = np.array([[1, 2, 2, 3, 3, 3, 4, 4, 4, 4], [5, 6, 6, 7, 7, 7, 8, 8, 8, 8]]) >>> s = row_slope(X)