{ } Raw JSON

bundles / scipy latest / scipy / signal / _peak_finding / _arg_x_as_expected

function

scipy.signal._peak_finding:_arg_x_as_expected

source: /scipy/signal/_peak_finding.py :255

Signature

def   _arg_x_as_expected ( value )

Summary

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

Extended Summary

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

Returns

value : ndarray

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

Aliases

  • scipy.signal._peak_finding._arg_x_as_expected