scipy 1.8.0 Pypi GitHub Homepage
Other Docs
ParametersBackRef
_filter_ridge_lines(cwt, ridge_lines, window_size=None, min_length=None, min_snr=1, noise_perc=10)

Parameters

cwt : 2-D ndarray

Continuous wavelet transform from which the ridge_lines were defined.

ridge_lines : 1-D sequence

Each element should contain 2 sequences, the rows and columns of the ridge line (respectively).

window_size : int, optional

Size of window to use to calculate noise floor. Default is cwt.shape[1] / 20 .

min_length : int, optional

Minimum length a ridge line needs to be acceptable. Default is cwt.shape[0] / 4 , ie 1/4-th the number of widths.

min_snr : float, optional

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] .

noise_perc : float, optional

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.

Examples

See :

Back References

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

scipy.signal._peak_finding._filter_ridge_lines

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#1126
type: <class 'function'>
Commit: