"""Utility functions for finding peaks in signals.""" Find local maxima in a 1D array. This function finds all local maxima in a 1D array and returns the indices for their edges and midpoints (rounded ...