Filter an array x/y based on various criteria x points are expected to be sorted
object containing 2 properties x and y
Optional
the minimum relative value compare to the Y max value
filtered data
Filter an array x/y based on various criteria x points are expected to be sorted