Returns the numberMaxPoints points with the bigger y.
object that contains property x (an ordered increasing array) and y (an array).
number of points to keep.
the points filtered to keep the numberMaxPoints most intense points of the input.
numberMaxPoints
Returns the numberMaxPoints points with the bigger y.