How do I give units to a distribution?

12 views
Skip to first unread message

Simón Windmuller

unread,
Feb 16, 2017, 5:13:00 PM2/16/17
to OMNeT++ Users

For example:

messageLength = gamma_d(32.498, 0.12797)

Which has to be in Bytes (B)

 
This does not work:

messageLength = gamma_d(32.498, 0.12797)B

or 

messageLength = ${gamma_d(32.498, 0.12797)}B 

either.


I've seen with the normal like:

normal(876s, 6s)

Which makes no sense for me mathematically speaking, unless the function only uses the letter just to output the calculation with the numbers and concatenating the letter.


Thanks,

Simon.

Michael Kirsche

unread,
Feb 20, 2017, 8:44:15 AM2/20/17
to OMNeT++ Users
How did you define your messageLength parameter in your NED file?
Did you add a unit to messageLength (i.e., @unit(byte)) ??

Rudolf Hornig

unread,
Feb 20, 2017, 9:32:21 AM2/20/17
to OMNeT++ Users
The other approach is to multiply the function with 1B (i.e. gamma_d(32.498, 0.12797) * 1B)
Reply all
Reply to author
Forward
0 new messages