slope_derivative_3d¶
- slope_derivative_3d(X: ndarray) ndarray[source]¶
Numba slope derivative transformation for a 3d numpy array.
Finds the derivative of the series, padding the first and last values so that the length stays the same.
- Parameters:
- X3d numpy array
A 3d numpy array of values
- Returns:
- arr3d numpy array
The slope derivative of each series
Examples
>>> import numpy as np >>> from aeon.utils.numba.general import slope_derivative_3d >>> X = np.array([ ... [[1, 2, 2, 3, 3, 3, 4, 4, 4, 4], [5, 6, 6, 7, 7, 7, 8, 8, 8, 8]], ... [[4, 4, 4, 4, 3, 3, 3, 2, 2, 1], [8, 8, 8, 8, 7, 7, 7, 6, 6, 5]], ... ]) >>> X_der = slope_derivative_3d(X)