c++ - How does "ErrorRate" works in NS3? -


i want set error rate in ns3, 1%-10%, following correct?

ptr<rateerrormodel> em     = createobjectwithattributes<rateerrormodel> (         "ranvar",         randomvariablevalue (uniformvariable (0., 1.)),         "errorrate",         doublevalue (0.1)); netdevices.get(0)->setattribute("receiveerrormodel", pointervalue (em)); 

i think it's ok, result not want. explain me how "errorrate" works in ns3?


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -