bundles / scipy 1.17.1 / scipy / signal / _peak_finding_utils / _peak_prominences
cython_function_or_method
scipy.signal._peak_finding_utils:_peak_prominences
Signature
def _peak_prominences ( x , peaks , wlen ) Summary
Calculate the prominence of each peak in a signal.
Parameters
x: ndarrayA signal with peaks.
peaks: ndarrayIndices of peaks in
x.wlen: np.intpA window length in samples (see peak_prominences) which is rounded up to the nearest odd integer. If smaller than 2 the entire signal
xis used.
Returns
prominences: ndarrayThe calculated prominences for each peak in
peaks.left_bases, right_bases: ndarrayThe peaks' bases as indices in
xto the left and right of each peak.
Raises
: ValueErrorIf a value in
peaksis an invalid index forx.
Warns
: PeakPropertyWarningIf a prominence of 0 was calculated for any peak.
Notes
This is the inner function to peak_prominences.
Aliases
-
scipy.signal._peak_finding._peak_prominences