local_max

seas.signalanalysis.local_max(x_values: numpy.ndarray, array1d: numpy.ndarray, sig: Optional[numpy.ndarray] = None)Tuple[numpy.ndarray, numpy.ndarray][source]

Finds the local max array values and their respective position (xvalues) by giving a significance cuttoff value array of the same size as the array1d, this will also return the cutoff significance at each local maxima.

Parameters
  • x_values – positional information (i.e. time, sequence, etc.)

  • array1d – data values (i.e. Dfof, etc.)

  • sig – third list, significance of signal, that is returned (in realitity this could be any array of equal len as array1d)

Returns

xvalues of where the local max data values of the local max third list of significance of where the local max