フィルターのクリア

Poisson point process simulation with a constant population?

2 ビュー (過去 30 日間)
Kyle Cook
Kyle Cook 2016 年 4 月 1 日
編集済み: H. Paul Keeler 2018 年 10 月 1 日
I'm trying to run a simulation of a poisson point process with both a set lambda and a set population. The poissrand function, however, randomly gives a number of points for the population. Is there any way to set the population at a fixed value?
Here is my code currently:
lamda=1000;
npoints = poissrnd(lamda);
pproc = rand(npoints,2)*100;
plot(pproc(:, 1), pproc(:, 2), '.');

回答 (1 件)

H. Paul Keeler
H. Paul Keeler 2018 年 9 月 29 日
編集済み: H. Paul Keeler 2018 年 10 月 1 日
For the definition of the Poisson point process, the N has to be a Poisson random variable with its mean related to the area/size of the simulation region. This is non-negotiable. But if you fix N=n to some natural number (that is, in probability language, you condition on N=n), you then get a binomial point process.
As I remarked in another response, I recently wrote about simulating these two point processes. The binomial point process on a rectangle is detailed here here. The Poisson point process on a rectangle and on a disk.

Community Treasure Hunt

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

Start Hunting!

Translated by