bundles / scipy 1.17.1 / scipy / signal / _peak_finding / _arg_wlen_as_expected
function
scipy.signal._peak_finding:_arg_wlen_as_expected
Signature
def _arg_wlen_as_expected ( value ) Summary
Ensure argument wlen is of type np.intp and larger than 1.
Extended Summary
Used in peak_prominences and peak_widths.
Returns
value: np.intpThe original
valuerounded up to an integer or -1 ifvaluewas None.
Aliases
-
scipy.signal._peak_finding._arg_wlen_as_expected