cedalion.sigproc.physio.ampd

cedalion.sigproc.physio.ampd(
amplitudes: Annotated[DataArray, DataArraySchema(dims='time', coords='time', 'time', 'samples')],
chunk_size: int = 500,
step_size: int = 200,
)[source]

Automatic Multiscale Peak Detection (AMPD) algorithm.

This implementation is based on the AMPD algorithm described in Scholkmann et al. [SBW12] which detects peaks in a signal using a multiscale approach and local scalogram matrix.

Parameters:
  • amplitudes – (NDTimeSeries) Input data array containing signal data for each channel and wavelength.

  • chunk_size – int, optional The size of each chunk to be processed (default is 600).

  • step_size – int, optional Step size for overlapping chunks (default is 200).

Returns:

xarray.DataArray

Output DataArray with the same shape as amplitudes where detected peaks are marked with 1, and non-peaks are marked with 0.

Return type:

peaks

Initial Contributors:

Isa Musisi | w.musisi@campus.tu-berlin.de | 2024