Generating units with an algorithm

24 Views Asked by At

Give an efficient algorithm for generating the first $T = 20$ time units to a Poisson process not homogeneous, whose intensity function is given by

$\lambda(t) = \begin{cases}\frac{t}{5} & \text{if } t\in[0, 5) \\ 1+5(t-5) & \text{if } t\in[5,10) \end{cases}$

Can you help me? Thanks to all.