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

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -