[Ns-developers] Random Variable API Changes / bugs 181 and 229

Michele Weigle mweigle at csnet.cs.odu.edu
Thu Jan 22 09:11:07 PST 2009

Here's the patch (based off of the ns-3-rng-changes branch).

The only remaining issue for me is the meaning of 'bound'.  In the  
NormalVariable implementation, the true bound is (mean +- bound).  In  
the others (Exponential, Pareto, Weibull), bound is the maximum value  
that can be returned.

I made a couple of changes in the NormalVariable comments to reflect  
this meaning of 'bound'.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: rv-bounds.patch
Type: application/octet-stream
Size: 3457 bytes
Desc: not available
Url : http://mailman.isi.edu/pipermail/ns-developers/attachments/20090122/10bd7e82/rv-bounds.obj
-------------- next part --------------

On Jan 22, 2009, at 10:52 AM, Michele Weigle wrote:
> I was looking at working on bug 229 (making exponential, pareto,
> weibull behave like normal when numbers are drawn outside the given
> bounds, http://www.nsnam.org/bugzilla/show_bug.cgi?id=229) and I
> noticed that the fixes for bug 181 (how normal distribution deals with
> numbers returned outside the given bounds, http://www.nsnam.org/bugzilla/show_bug.cgi?id=181)
>  aren't in the ns-3-rng-changes branch, but are in the ns-3-dev  
> branch.
> I'll work on making a patch today that re-includes the fix for normal
> as well as the other distributions.  Just wanted to let folks know
> before anyone goes to update the reference traces as these changes may
> affect them.
> -Michele
> --
> Michele Weigle
> Assistant Professor
> Department of Computer Science
> Old Dominion University
> Norfolk, VA 23539
> mweigle at cs.odu.edu
> http://www.cs.odu.edu/~mweigle
> (757) 683-6001 ext. 5050

More information about the Ns-developers mailing list