skdh.features.RangeCountPercentage#

class skdh.features.RangeCountPercentage(range_min=-1.0, range_max=1.0)#

The percent of the signal that falls between specified values

Parameters:
range_min{int, float}, optional

Minimum value of the range. Default value is -1.0

range_max{int, float}, optional

Maximum value of the range. Default value is 1.0

Attributes:
rmax
rmin

Methods

compute(signal, *[, axis])

Compute the range count percentage

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

Compute the range count percentage

Parameters:
signalarray-like

Array-like containing values to compute the range count percentage for.

axisint, optional

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

Returns:
rcpnumpy.ndarray

Computed range count percentage.