Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Create function for different normal distributions

I want to use a function to assign different normal distributions for the waiting time in a queue based on a agent parameter.

Function

Fuction body:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

if (agent.tar == "A03")
    return normal(4.70,16.38);
if (agent.tar == "A02")
    return normal(4.70,16.38);
else normal(4.8,16.9);

Does anyone know what "Type" i have to use to return it to the queue?

Queue

Many thanks for your help in advance.

Brgds Kev

The pictures above shows my approach. I just need to know what type should be returned.

>Solution :

The "delay time" field wants to know a double so your function MUST return a "double" value.

Just choose that in the "Returns value" dropdown for "Type", it is the 2nd entry from the top.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading