first_order_differences_3d

first_order_differences_3d(X: ndarray) ndarray[source]

Numba first order differences function for a 3d numpy array.

Parameters:
X3d numpy array

A 3d numpy array of values

Returns:
arr2d numpy array of shape (X.shape[0], X.shape[1], X.shape[2] - 1)

The first order differences for axis 2 of the input array

Examples

>>> import numpy as np
>>> from aeon.utils.numba.general import first_order_differences_3d
>>> X = np.array([[[1, 2, 2, 3, 3, 3, 4, 4, 4, 4], [5, 6, 6, 7, 7, 7, 8, 8, 8, 8]]])
>>> diff = first_order_differences_3d(X)