piogrowth.turbistat module

Contents

piogrowth.turbistat module#

piogrowth.turbistat.detect_peaks(series: Series, distance: int = 300, prominence: float = None) Series[source]#

Detect peaks in a pandas Series using scipy’s find_peaks function.

Parameters:
  • series (pd.Series) – The input time series data.

  • distance (int) – Minimum horizontal distance (in number of samples) between neighboring peaks.

  • prominence (float) – Required prominence of peaks. If None, defaults to one-fifth of the maximum value in the series.

Returns:

Detected peaks in the series.

Return type:

pd.Series