필터 지우기
필터 지우기

How can I add an exponential distribution to a Single server in Simulink?

조회 수: 1 (최근 30일)
Ry
Ry 2012년 12월 31일
댓글: Mai Mohamed 2023년 6월 23일
I have a Simulink file with a single server. I want this single server to have an exponential distributed service time with a mean of 10^-3. How can I add this? In the block Single server, I think I have to do Service Time from: "Signal from port t". But how to make an exponential distributed signal with this mean?

채택된 답변

Ryan G
Ryan G 2012년 12월 31일
If you took my advice from the previous answer, you can use the same Attribute function to apply an exponentially random number to the entity:
out_expRandNum = random('exp',10e-3);
You can then use the expRandNum attribute in the server by using the Service Time From Attribute option. Otherwise you can use 'From Signal Port t' and the event based random number setup for an exponential variation.
  댓글 수: 1
Mai Mohamed
Mai Mohamed 2023년 5월 19일
i apply that adding event based random number to single server to add exponential distribution failure with mean 0.01
how can i add exponential distribution repaire with mean 0.1?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Ry
Ry 2012년 12월 31일
Thank you, I added the event based random number.
  댓글 수: 2
Mai Mohamed
Mai Mohamed 2023년 5월 19일
i apply that adding event based random number to single server to add exponential distribution failure with mean 0.01
how can i add exponential distribution repaire with mean 0.1?

댓글을 달려면 로그인하십시오.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by