_filter_ridge_lines(cwt, ridge_lines, window_size=None, min_length=None, min_snr=1, noise_perc=10)
Continuous wavelet transform from which the ridge_lines
were defined.
Each element should contain 2 sequences, the rows and columns of the ridge line (respectively).
Size of window to use to calculate noise floor. Default is cwt.shape[1] / 20
.
Minimum length a ridge line needs to be acceptable. Default is cwt.shape[0] / 4
, ie 1/4-th the number of widths.
Minimum SNR ratio. Default 1. The signal is the value of the cwt matrix at the shortest length scale ( cwt[0, loc]
), the noise is the :None:None:`noise_perc'th percentile of datapoints contained within a
window of 'window_size`
around cwt[0, loc]
.
When calculating the noise floor, percentile of data points examined below which to consider noise. Calculated using scipy.stats.scoreatpercentile.
Filter ridge lines according to prescribed criteria. Intended to be used for finding relative maxima.
The following pages refer to to this document either explicitly or contain code examples using this.
scipy.signal._peak_finding._filter_ridge_lines
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