bundles / scipy 1.17.1 / scipy / signal / _peak_finding / _select_by_peak_threshold
function
scipy.signal._peak_finding:_select_by_peak_threshold
Signature
def _select_by_peak_threshold ( x , peaks , tmin , tmax ) Summary
Evaluate which peaks fulfill the threshold condition.
Parameters
x: ndarrayA 1-D array which is indexable by
peaks.peaks: ndarrayIndices of peaks in
x.tmin, tmax: scalar or ndarray or NoneMinimal and / or maximal required thresholds. If supplied as ndarrays their size must match
peaks.Noneis interpreted as an open border.
Returns
keep: boolA boolean mask evaluating to true where
peaksfulfill the threshold condition.left_thresholds, right_thresholds: ndarrayArray matching
peakcontaining the thresholds of each peak on both sides.
Notes
Aliases
-
scipy.signal._peak_finding._select_by_peak_threshold