Problems Simulating Interarrival Times

点点圈 提交于 2019-11-30 10:30:51

Sounds like you're trying to simulate a non-homogeneous Poisson process where lambda(t) is being defined in piece-wise segments to the nearest minute.

The correct way to do this is with "thinning". Basically, find the maximum lambda(t) and generate pseudo-arrivals at times t1, t2, t3,... at rate lambdamax. For each pseudo-arrival at time ti, accept it as a an actual arrival with probability lambda(ti) / lambdamax. The result is a sequence of the times at which vehicles arrive at the tunnel.

I'm pretty sure the way to go about simulating a Poisson process is to sample the interarrival time and construct arrival times from that -- sampling both the mean number per unit time and the interarrival time doesn't make any sense to me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!