cogpy.detect.utils
Detection utilities (v2.6.4).
Note: keep heavy deps (SciPy) as local imports so this module can be imported under minimal interpreters. The supported runtime is the cogpy conda env.
Functions
|
Bandpass filter using cogpy.preprocess.filtering.bandpassx. |
|
Summary statistics of bout durations. |
|
Fraction of total_duration occupied by bouts. |
|
Dual-threshold detection on a 1D array. |
|
Find contiguous True runs in a 1D boolean mask. |
|
Compute Hilbert envelope (magnitude of analytic signal). |
|
Merge 1D intervals whose gap is <= gap samples. |
|
Convert a 1D score time series to event bouts via dual threshold. |
|
Z-score a 1D array with safe std handling. |