skdh.features.LinearSlope#

class skdh.features.LinearSlope#

The slope from linear regression of the signal

Methods

compute(signal[, fs, axis])

Compute the linear regression slope

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

Compute the linear regression slope

Parameters:
signalarray-like

Array-like containing values to compute the linear slope for.

fsfloat, optional

Sampling frequency in Hz. If not provided, default is 1.0Hz.

axisint, optional

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

Returns:
slopenumpy.ndarray

Signal slope.