_boolrelextrema(data, comparator, axis=0, order=1, mode='clip')
Relative extrema are calculated by finding locations where comparator(data[n], data[n+1:n+order+1])
is True.
Array in which to find the relative extrema.
Function to use to compare two data points. Should take two arrays as arguments.
Axis over which to select from data
. Default is 0.
How many points on each side to use for the comparison to consider comparator(n,n+x)
to be True.
How the edges of the vector are treated. 'wrap' (wrap around) or 'clip' (treat overflow as the same as the last (or first) element). Default 'clip'. See numpy.take.
Boolean array of the same shape as data
that is True at an extrema, False otherwise.
Calculate the relative extrema of data
.
>>> testdata = np.array([1,2,3,2,1])See :
... _boolrelextrema(testdata, np.greater, axis=0) array([False, False, True, False, False], dtype=bool)
The following pages refer to to this document either explicitly or contain code examples using this.
scipy.signal._peak_finding._boolrelextrema
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