This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / signal / _peak_finding / _arg_wlen_as_expected

function

scipy.signal._peak_finding:_arg_wlen_as_expected

source: build-install/usr/lib/python3.14/site-packages/scipy/signal/_peak_finding.py:298

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

The original value rounded up to an integer or -1 if value was None.

Aliases

  • scipy.signal._peak_finding._arg_wlen_as_expected