Generate exponential distribution of event times
조회 수: 3 (최근 30일)
이전 댓글 표시
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
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!