I have a requirement to simulate a network traffic which is Poiss开发者_C百科on and Bursty (Long or Heavy Tailed) inter arrival times. I could do the Poisson part as
delay = - log(1 - rand.nextDouble()) * delay;
However, I am stuck with simulating the Bursty traffic simulation. Could someone hint/point me to the right web resource or code to achieve this? Thanks..
The easiest and safest thing might be to download a library that supports various types of long-tailed distributions, such as a Pareto distribution, and call that API's nextRandom
method (or the equivalent).
精彩评论