skdh.features.MeanCrossRate#

class skdh.features.MeanCrossRate#

Number of signal mean value crossings. Expressed as a percentage of signal length.

Methods

compute(signal, *[, axis])

Compute the mean cross rate

compute(signal, *, axis=-1)#

Compute the mean cross rate

Parameters:
signalarray-like

Array-like containing values to compute the mean cross rate for.

axisint, optional

Axis along which the signal entropy will be computed. Ignored if signal is a pandas.DataFrame. Default is last (-1).

Returns:
mcrnumpy.ndarray

Computed mean cross rate.