biosppy.features.time

biosppy.features.time

This module provides methods to extract time features.

copyright:
  1. 2015-2026 by Instituto de Telecomunicacoes

license:

BSD 3-clause, see LICENSE for more details.

Functions

hjorth_features([signal])

Compute Hjorth mobility, complexity, chaos and hazard.

time([signal, sampling_rate, include_diff])

Compute various time metrics describing the signal.

biosppy.features.time.hjorth_features(signal=None)[source]

Compute Hjorth mobility, complexity, chaos and hazard.

Parameters:

signal (array) – Input signal.

Returns:

  • hjorth_mobility (float) – Hjorth mobility.

  • hjorth_complexity (float) – Hjorth complexity.

  • hjorth_chaos (float) – Hjorth chaos.

  • hjorth_hazard (float) – Hjorth hazard.

Notes

Hjorth activity corresponds to the variance of the signal.

biosppy.features.time.time(signal=None, sampling_rate=1000.0, include_diff=True)[source]

Compute various time metrics describing the signal.

Parameters:
  • signal (array) – Input signal.

  • sampling_rate (int, float, optional) – Sampling Rate (Hz).

  • include_diff (bool, optional) – Whether to include the features of the signal’s differences (first, second and absolute).

Returns:

feats (ReturnTuple object) – Time features of the signal.

Notes

Besides the features directly extracted in this function, it also calls: - biosppy.signals.tools.signal_stats - biosppy.stats.quartiles - biosppy.stats.histogram - biosppy.features.time.hjorth_features