bundles / scipy 1.17.1 / scipy / signal / _peak_finding / _unpack_condition_args
function
scipy.signal._peak_finding:_unpack_condition_args
Signature
def _unpack_condition_args ( interval , x , peaks ) Summary
Parse condition arguments for find_peaks.
Parameters
interval: number or ndarray or sequenceEither a number or ndarray or a 2-element sequence of the former. The first value is always interpreted as imin and the second, if supplied, as imax.
x: ndarrayThe signal with
peaks.peaks: ndarrayAn array with indices used to reduce imin and / or imax if those are arrays.
Returns
imin, imax: number or ndarray or NoneMinimal and maximal value in
argument.
Raises
: ValueErrorIf interval border is given as array and its size does not match the size of
x.
Notes
Aliases
-
scipy.signal._peak_finding._unpack_condition_args