Traffic generation using poissrnd()

9 visualizaciones (últimos 30 días)
Jaya
Jaya el 9 de Ag. de 2021
Comentada: Jaya el 18 de Ag. de 2021
I generate 24 numbers using possrnd as below
lambda=50
r = poissrnd(lambda,1,24)
% One output is 47 58 45 52 57 44 53 54 43 48 57 44 69 58 35 66 60 44 47 47 45 48 51 43
Can I use this output as a Possion distributed traffic over 24 hours? I am confused on how to generate a Possion arrival traffic as I see other stuff like creating exponentially distributed RVs and then inter-arrival times, etc. Please advise me

Respuesta aceptada

Prachi Kulkarni
Prachi Kulkarni el 12 de Ag. de 2021
Hi,
For arrival traffic over a single set of 24 hours with mean "lambda", you can use-
r = poissrnd(lambda);
For arrival traffic for 24 separate hours, each with mean "lambda", you can use-
r = poissrnd(lambda,1,24);
For more details regarding the "poissrnd" function or the Poisson distribution in general, please refer to the following documentation
  3 comentarios
Prachi Kulkarni
Prachi Kulkarni el 18 de Ag. de 2021
Hi,
Both the code snippets you provided represent the same scenario. They are modeling the arrival traffic in each hour separately. This is shown below-
r = poissrnd(lambdaHour,1,24); % The mean traffic in each hour is lambdaHour
To model arrival traffic for a full day i.e. 24 hours, you will need to generate a single Poisson random variable. The mean of this random variable should be 24 times the mean for a single hour i.e. 24*lambdaHour. This is shown below-
r = poissrnd(24*lambdaHour);
Jaya
Jaya el 18 de Ag. de 2021
Thanks a lot!

Iniciar sesión para comentar.

Más respuestas (0)

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by