scipy 1.8.0 Pypi GitHub Homepage
Other Docs
NotesParametersReturnsBackRef
_select_by_peak_threshold(x, peaks, tmin, tmax)

Notes

versionadded

Parameters

x : ndarray

A 1-D array which is indexable by :None:None:`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 :None:None:`peaks`. None is interpreted as an open border.

Returns

keep : bool

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

left_thresholds, right_thresholds : ndarray

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

Evaluate which peaks fulfill the threshold condition.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.spatial._kdtree.distance_matrix scipy.signal._peak_finding.find_peaks scipy.integrate._ivp.common.num_jac

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/signal/_peak_finding.py#678
type: <class 'function'>
Commit: