how can I simulate poisson random process ?

조회 수: 6 (최근 30일)
mai ahmed
mai ahmed 2021년 1월 4일
편집: David Goodmanson 2021년 1월 5일
how can to simulate a single realization of the Poisson counting process as described above. Such that the discrete-amplitude random process counts the number of packets arriving in the time interval [0,t). Take your simulation total time to be 10 hours, time sampling step size to be 1 sec.
where the average number of packets arriving per minute in a certain cell is lamda equal 10 .
how can I compute the interval times between the arrival of each two successive packets ?
  댓글 수: 4
mai ahmed
mai ahmed 2021년 1월 5일
T = 10;
lambda = 1/6;
Rand=randi([1,10], 36000);
prob = (lambda.^Rand) .* exp(-lambda) ./ factorial(Rand);
summation = sum(prob);
disp(summation);
hist(summation)
p=rand(1,36000);
t = -6 *log(1-p);
is that correct ?
Star Strider
Star Strider 2021년 1월 5일
See if exprnd will do what you want.

댓글을 달려면 로그인하십시오.

답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by