skdh.features.Mean#
- class skdh.features.Mean#
The signal mean.
Methods
compute(signal, *[, axis])Compute the mean.
Examples
>>> import numpy as np >>> signal = np.arange(15).reshape((5, 3)) >>> mn = Mean() >>> mn.compute(signal) array([6., 7., 8.])
- compute(signal, *, axis=-1)#
Compute the mean.
- Parameters:
- signalarray-like
Array-like containing values to compute the mean for.
- axisint, optional
Axis along which the signal entropy will be computed. Ignored if signal is a pandas.DataFrame. Default is last (-1).
- Returns:
- meannumpy.ndarray
Computed mean.