highestN

fiducia.rawProcess.highestN(signal, peakIdxs, peaksNum=2)[source]

Select the N tallest peaks.

Parameters
  • signal (pandas.core.series.Series) – A data series consisting of signals from a single dante channel.

  • peakIdxs (list) – A list of indices corresponding to peaks identified in the signal by using scipy’s find_peaks() function.

  • peaksNum (int) – Number of peaks to grab from peakIdxs. This function will grab just the N tallest peaks where N=peaksNum.

Returns

highestPeaks – Array of indices corresponding to the highest peaks. Peaks are ordered from highest to lowest.

Return type

numpy.ndarray

Notes

Examples