pycram.filter#

Classes#

Filter

Abstract class to ensure that every supported filter needs to implement the filter method.

Butterworth

Implementation for a Butterworth filter.

Module Contents#

class pycram.filter.Filter#

Abstract class to ensure that every supported filter needs to implement the filter method.

Method filter:

Abstract method to filter the given data.

abstract filter(data)#
class pycram.filter.Butterworth(order=4, cutoff=10, fs=60)#

Bases: Filter

Implementation for a Butterworth filter.

Parameters:
  • order – The order of the filter (default is 4).

  • cutoff – The cutoff frequency of the filter (default is 10).

  • fs – The sampling frequency of the data (default is 60).

order = 4#
cutoff = 10#
fs = 60#
filter(data: list)#

Filters the given data using a Butterworth filter.

Parameters:

data – The data to be filtered.

Returns:

The filtered data.