ltbio.processing.filters.TimeDomainFilter#

Overview#

Classes#

ConvolutionOperation

str(object=’’) -> str

TimeDomainFilter

Describes the design of a digital time-domain filter and holds the ability to apply that filter to any array of samples.

Contents#

class ltbio.processing.filters.TimeDomainFilter.ConvolutionOperation#

Bases: str, enum.Enum

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.

GAUSSIAN = 'Gaussian'#
HAMMING = 'Hamming'#
HANN = 'Hann'#
KAISER = 'Kaiser'#
MEDIAN = 'Median'#
PARZEN = 'Parzen'#
class ltbio.processing.filters.TimeDomainFilter.TimeDomainFilter(operation: ConvolutionOperation, window_length: datetime.timedelta, overlap_length: datetime.timedelta = timedelta(seconds=0), name: str = None, **options)#

Bases: ltbio.processing.filters.Filter.Filter

Describes the design of a digital time-domain filter and holds the ability to apply that filter to any array of samples. It acts as a concrete visitor in the Visitor Design Pattern.

To instantiate, give:
  • operation: The operation to apply to each window. Choose one from TimeOperation enumeration.

  • window_length: The length of the window (in timedelta).

  • overlap_window: The length of the overlap between window slides (in timedelta). Default: 0 seconds.