{ } Raw JSON

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

function

scipy.signal._peak_finding:_arg_peaks_as_expected

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