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

bundles / scipy latest / scipy / signal / _peak_finding / _arg_peaks_as_expected

function

scipy.signal._peak_finding:_arg_peaks_as_expected

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

Signature

def _arg_peaks_as_expected(value)

Summary

Ensure argument peaks is a 1-D C-contiguous array of dtype('intp').

Extended Summary

Used in peak_prominences and peak_widths to make peaks compatible with the signature of the wrapped Cython functions.

Returns

value : ndarray

A 1-D C-contiguous array with dtype('intp').

Aliases

  • scipy.signal._peak_finding._arg_peaks_as_expected