systole.utils.find_clipping#

systole.utils.find_clipping(signal: ndarray) Tuple[float | None, float | None][source]#

Automatically find the max and/or min threshold value of clipping artefacts.

Parameters:
signal

The physiological signal.

Returns:
min_threshold, max_threshold

The minimum and maximum threshold corresponding to the clipping artefact. If no threshold is found, returns None.