i want to make a base staion model with poisson point process

11 ビュー (過去 30 日間)
vishnu v
vishnu v 2020 年 7 月 28 日
編集済み: LC 2020 年 10 月 5 日
lambda =10^-5 area 10 sqr km
how to do this pls help

回答 (1 件)

LC
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.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by