Finds all the max values If the values are equal the middle of the equal part will be the position of the signal!
Object that contains property x (an ordered increasing array) and y (an array)
Object with from and to properties
Finds all the max values If the values are equal the middle of the equal part will be the position of the signal!