Generate exponential distribution of event times

조회 수: 3 (최근 30일)
Borjan Trajanoski
Borjan Trajanoski 2020년 6월 22일
편집: David Goodmanson 2020년 6월 22일
I have to generate event times in the time interval [0; T] with T = 2000 s such that the waiting times between consecutive events are exponentially distributed with mean u = 0.4 s. Then counting the number of events per second.
I thought I could start by looking at each event time as the sum of all previous waiting times. But I am not allowed to use loops in my script, so I kinda got stuck there.
I would appreciate some kind of hint :)
  댓글 수: 1
David Goodmanson
David Goodmanson 2020년 6월 22일
편집: David Goodmanson 2020년 6월 22일
Hi Borjon, here is one; find out how samples taken from a poisson distribution are related to the problem at hand.

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

답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by