i want to make a base staion model with poisson point process
9 次查看(过去 30 天)
显示 更早的评论
lambda =10^-5 area 10 sqr km
how to do this pls help
0 个评论
回答(1 个)
LC
2020-10-5
编辑:LC
2020-10-5
clc
clear
area_cons = 10000; % Area under consideration
L = 50; % Consider the square with boundaries [-L L] x [-L L] with are 10000
lambda = 10^(-5); % Intensity of the Poisson point process
lambda_dash = lambda.*area_cons; % Average number of users in the considered area
n_point = poissrnd(lambda_dash); % Number of points, Poisson distributed
x = 2*L*rand(1,n_point)-L; % Uniformly distributing x-coordinates of points
y = 2*L*rand(1,n_point)-L; % Uniformly distributing y-coordinates of points
scatter(x,y)
A word of caution: The intensity considered is very small. For the intensity of 10^(-5) and area of 10000, you will get only 0.1 point, so almost no point. Try changing the intensity to somewhat higher value, e.g., 10^(-3), to see a realization.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!