count_mean_crossing

count_mean_crossing(X: ndarray) float[source]

Numba count above mean of first order differences for a 1d numpy array.

Parameters:
X1d numpy array

A 1d numpy array of values

Returns:
mean_crossing_countfloat

The count above mean of first order differences of the input array

Examples

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