Text this: A spline function method for modelling and generating a nonhomogeneous poisson process.