About simluation of the poisson point process. Thank you
3 ビュー (過去 30 日間)
古いコメントを表示
Dear friends,
I am new with poisson point process. I did one simluation as below. My intensity lambda = 50;
clear all;
lambda=50;
npoints = poissrnd(lambda);
pproc = rand(npoints, 2);
plot(pproc(:, 1), pproc(:, 2), '.');
Then I have plot,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146790/image.bmp)
However, the link
http://connor-johnson.com/2014/02/25/spatial-point-processes/
showed me that when intensity lamuda = 0.2, smaller than 1 , he got
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146791/image.bmp)
The link also showed the code in Python.Please check it.
Here is my question, why intensity is smaller than 1, he still can plot something here? If I let my code's lamda = 0.2, there will be no value to plot. I think I miss something about poiion point process? or it's a programming problem?
Thank you so much for your help.
0 件のコメント
採用された回答
その他の回答 (1 件)
Syed
2016 年 10 月 10 日
Don't you think it should be something like below.
clear all;
clc;
close all;
lambda=50;
%Method 1
pproc = poissrnd(lambda, 100, 2);
size(pproc)
plot(pproc(:, 1), pproc(:, 2), '.');
title('Poisson with poissrnd')
%Method 2
pproc2 = random('Poisson', lambda, 100, 2);
size(pproc2)
figure;
plot(pproc2(:, 1), pproc2(:, 2), '.');
title('Poisson with Random statement')
1 件のコメント
KalMandy
2017 年 1 月 20 日
hi, do we need any special toolbox to run these programs with PPP (Poison Point Process)?
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!