Bug 475

Summary: Two new RandomVariables: GammaVariable and ErlangVariable
Product: ns-3 Reporter: TimoB <timo.bingmann>
Component: coreAssignee: Michele Weigle <mweigle>
Status: RESOLVED FIXED    
Severity: enhancement CC: mathieu.lacage, raj.b, tomh
Priority: P3    
Version: ns-3-dev   
Hardware: All   
OS: All   
URL: https://idlebox.net/2008/ns-3-wifi/code/ns-3-rndvar/
Attachments: Two new RVs and samples program.

Description TimoB 2009-01-19 12:24:44 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
Comment 1 Rajib Bhattacharjea 2009-01-20 14:39:46 UTC
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.
Comment 2 TimoB 2009-02-25 09:45:31 UTC
Pulled current ns-3-dev and adapted to rngvar changes.

https://idlebox.net/2008/ns-3-wifi/code/ns-3-rndvar/
Comment 3 TimoB 2009-03-05 12:24:48 UTC
Created attachment 397 [details]
Two new RVs and samples program.
Comment 4 TimoB 2009-03-05 12:25:58 UTC
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
Comment 5 Michele Weigle 2009-03-06 07:06:41 UTC
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.
Comment 6 Tom Henderson 2009-04-10 16:18:24 UTC
(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.
Comment 7 Mathieu Lacage 2009-04-16 04:08:22 UTC
changeset: 0a250f44e0ed