You are viewing an older version (1.17.1).Go to latest (1.18.0)
{ } Raw JSON

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 : ndarray

Indices of peaks in vector.

priority : ndarray

An array matching peaks used to determine priority of each peak. A peak with a higher priority value is kept over one with a lower one.

distance : np.float64

Minimal distance that peaks must be spaced.

Returns

keep : ndarray[bool]

A boolean mask evaluating to true where peaks fulfill 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