prtools.pv#

pv(a, axis=None)[source]#

Compute peak-to-valley or max(a) - min(a)

Parameters:
  • a (array_like) – Input array

  • axis (None or int, optional) – Axis or axes along which the peak-to-valley is computed. The default is to compute the peak-to-valley of the flattened array.

Return type:

ndarray