{ } Raw JSON

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

function

scipy.signal._peak_finding:_arg_wlen_as_expected

source: /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