generatePPConst function

Poisson process with piecewise constant intensities