I want to check if a curve fits between two specified bounds for some fraction of the length of the array.
I can do this nicely when I want to check if the curve is conta