フィルターのクリア

Poisson arrivals and exponential inter-arrival times

5 ビュー (過去 30 日間)
zeezo
zeezo 2017 年 7 月 27 日
編集済み: David Goodmanson 2017 年 7 月 27 日
I want generate events that follow Poisson arrivals and the inter-arrival time between events to be exponentially distributed?
which command should I use ?

回答 (1 件)

David Goodmanson
David Goodmanson 2017 年 7 月 27 日
編集済み: David Goodmanson 2017 年 7 月 27 日
Hi zeezo,
Not doubt there is something in one or more of the toolboxes, but for a set of time intervals with the exponential distribution, with mean time t0:
n = 1e7
t = -log(rand(1,n))*t0;
The fraction of occurrences with t > t0 should be exp(-1):
>> (1/n)*sum(t>t0)
ans = 0.3680
>> exp(-1)
ans = 0.3679

Community Treasure Hunt

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

Start Hunting!

Translated by