Simulation of nonhomogeneous poisson processes by thinning | Synapse