Skip to content
Prev 177128 / 398503 Next

Intersection of two sets of intervals

On 4/15/2009 8:59 AM, Thomas Meyer wrote:
pmax and pmin should be helpful.  I don't know how you want to represent 
empty intersections, but I'd just compute the pmax of the lower bounds, 
the pmin of the upper bounds, and then if the new upper bound is less 
than the new lower bound, treat it as empty.

Duncan Murdoch