bundles / scipy 1.17.1 / scipy / signal / _peak_finding_utils / _select_by_peak_distance
cython_function_or_method
scipy.signal._peak_finding_utils:_select_by_peak_distance
Signature
def _select_by_peak_distance ( peaks , priority , distance ) Summary
Evaluate which peaks fulfill the distance condition.
Parameters
peaks: ndarrayIndices of peaks in
vector.priority: ndarrayAn array matching
peaksused to determine priority of each peak. A peak with a higher priority value is kept over one with a lower one.distance: np.float64Minimal distance that peaks must be spaced.
Returns
keep: ndarray[bool]A boolean mask evaluating to true where
peaksfulfill the distance condition.
Notes
Declaring the input arrays as C-contiguous doesn't seem to have performance advantages.
Aliases
-
scipy.signal._peak_finding._select_by_peak_distance