I have a simulation for the Grade of Service of a circuit switched mobile network and I need to include how many calls get dropped I have the probabilities for each call and i need to find how many would be dropped in a given run of the simulation. I have no idea how to do this. are there any matlab functions built for realising a probability in a simulation?

 채택된 답변

David Hill
David Hill 2022년 10월 17일

0 개 추천

Just compare the array of probabilities of a dropped call to a rand uniform distribution array.
mu=.85;
sigma=.1;
p=mu+sigma*randn(1,1000);%load sample probability array of dropped calls
p(p>1)=1;
r=rand(1,1000);%generate randomn uniform array
nnz(r>p)%compare the two arrays, and count the number of instances.

추가 답변 (1개)

Walter Roberson
Walter Roberson 2022년 10월 17일

0 개 추천

Well, there are two different approaches:
  • you could calculate statistically, probability times number of calls, and round() or floor() or ceil() to get a integer. This assumes uniform random distribution; OR
  • you could model time-step by time-step, creating new calls, hanging up existing calls normally, faulting existing calls. This might make it easier to model increased probability of dropping calls if the system is busier. You would have to decide whether the "hanging up" is processed before or after the "create new calls" since the creation of new calls needs to fail if you are over capacity.
The event modeling system is Simscape https://www.mathworks.com/products/simscape.html

카테고리

도움말 센터File Exchange에서 Operators and Elementary Operations에 대해 자세히 알아보기

질문:

2022년 10월 17일

댓글:

2022년 10월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by