local_max#

local_max(spectre, vicinity)[source]#

Perform a local maxima algorithm of a vector.

Parameters:
  • spectre (ndarray[Any, dtype[float64]]) – The vector to investigate.

  • vicinity (int) – The half window in which a local maxima is searched.

Return type:

Tuple[ndarray[Any, dtype[int64]], ndarray[Any, dtype[float64]]]

Returns:

A tuple containing the index and vector values of the detected local maxima.