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