Generate exponential distribution of event times
3 views (last 30 days)
Show older comments
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 Comment
David Goodmanson
on 22 Jun 2020
Edited: David Goodmanson
on 22 Jun 2020
Hi Borjon, here is one; find out how samples taken from a poisson distribution are related to the problem at hand.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!