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