Bugzilla – Bug 475
Two new RandomVariables: GammaVariable and ErlangVariable
Last modified: 2009-04-16 04:08:22 UTC
The repo has two new RandomVariables: GammaVariable and ErlangVariable. They are required for Nakagami/Rayleigh fast fading propagation loss models. Furthermore I added a program in samples/ to plot probability density histogramms of all RandomVariables and the ideal functions to compare them again. See the programs output at http://idlebox.net/2008/ns-3-wifi/results/ns-3-main-random-variables.pdf
Thanks for the contribution. The RandomVariable API is in flux (as you might know from following the developers list). I think we might be able to add this in before ns-3.4 is released if it can be adapted to the new API quickly enough.
Pulled current ns-3-dev and adapted to rngvar changes. https://idlebox.net/2008/ns-3-wifi/code/ns-3-rndvar/
Created attachment 397 [details] Two new RVs and samples program.
The output of my test program of all RVs included in patch is still at http://idlebox.net/2008/ns-3-wifi/results/ns-3-main-random-variables.pdf
Sorry I didn't post an update here at the time, but at the end of Jan, I submitted this patch to Raj for inclusion in the ns-3-rng branch which he merged with ns-3-dev. But, now I see the new changes (unsigned int for first param of Erlang) and I'll take a look.
(In reply to comment #5) > Sorry I didn't post an update here at the time, but at the end of Jan, I > submitted this patch to Raj for inclusion in the ns-3-rng branch which he > merged with ns-3-dev. > > But, now I see the new changes (unsigned int for first param of Erlang) and > I'll take a look. > Michele is on leave at the moment but reviewed them in the past and is OK to commit them. So, Timo, feel free to commit and close this bug.
changeset: 0a250f44e0ed