Integral of an Indicator Function