def METHOD_NAME(data: list[float], threshold: float = 0.0) -> list[int]:
    """maxima
    Args:
        data (list[float]): data list to execute
    Returns:
        list[int]: indices of maxima
    """
    peaks = find_peaks(data, width=2, distance=3, prominence=1)[0].tolist()
    return [i for i in peaks if data[i] > threshold] if threshold else peaks