• Finds all the max values If the values are equal the middle of the equal part will be the position of the signal!

    Parameters

    • data: DataXY<NumberArray>

      Object that contains property x (an ordered increasing array) and y (an array)

    • options: XGetFromToIndexOptions = {}

      Object with from and to properties

    Returns PointWithIndex[]

    • Array of points