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 / _select_by_peak_threshold

function

scipy.signal._peak_finding:_select_by_peak_threshold

source: /scipy/signal/_peak_finding.py:684

Signature

def _select_by_peak_threshold(x, peaks, tmin, tmax)

Summary

Evaluate which peaks fulfill the threshold condition.

Parameters

x : ndarray

A 1-D array which is indexable by peaks.

peaks : ndarray

Indices of peaks in x.

tmin, tmax : scalar or ndarray or None

Minimal and / or maximal required thresholds. If supplied as ndarrays their size must match peaks. None is interpreted as an open border.

Returns

keep : bool

A boolean mask evaluating to true where peaks fulfill the threshold condition.

left_thresholds, right_thresholds : ndarray

Array matching peak containing the thresholds of each peak on both sides.

Notes

Aliases

  • scipy.signal._peak_finding._select_by_peak_threshold