quantileInt
Returns the quantile (inverse CDF) for the given probability p as an integer.
Finds the smallest number of events k such that the cumulative probability of k or fewer events is at least p. Uses a linear search starting from the expected value (lambda) for efficiency.
Return
the smallest integer k at which cdf(k) >= p.
Parameters
p
the cumulative probability, must be in [0, 1].