dispel.providers.generic.tremor module#

Specific functionality for signal processing of the tremor detection.

class dispel.providers.generic.tremor.PowerSpectrumDensity[source]#

Bases: Apply

A transform step to compute the power spectrum of a signal.

Parameters:
  • data_set_id – The data set id on which the transformation is to be performed.

  • columns – The columns onto which the signal’s tremor filter is applied.

  • new_data_set_id – The new id used for the RawDataSetDefinition .

  • level_filter – An optional LevelFilter to determine the levels to be transformed.

__init__(data_set_id, columns=None, new_data_set_id=None, level_filter=None)[source]#
Parameters:
class dispel.providers.generic.tremor.TremorMeasures[source]#

Bases: ProcessingStepGroup

A group of tremor processing steps according a given data set.

Parameters:
  • sensor – The type of sensor on which the extraction is to be performed.

  • data_set_id – The data set id on which the transformation is to be performed (‘accelerometer’, ‘gyroscope’).

  • columns – The columns onto which the signal’s tremor measures are to be extracted.

  • lower_bound – The lower bound of frequencies below which the signal is filtered.

  • upper_bound – The upper bound of frequencies above which the signal is filtered.

  • level_filter (dispel.processing.level.LevelFilter) – An optional LevelFilter to determine the levels to be transformed. If no filter is provided, all levels will be transformed. The level_filter also accepts str, LevelIds and lists of either and passes them to a LevelIdFilter for convenience.

  • add_norm – An optional boolean to determine if the norm should be added to the columns.

Notes

The lower and upper bound of the band filter values are set by default to 2.0 and 5.0.

__init__(sensor, data_set_id, lower_bound=2.0, upper_bound=5.0, add_norm=True, add_average_signal=True, columns=None, level_filter=None)[source]#
Parameters: