[Ns-developers] Random Variables API changes
Raj Bhattacharjea
raj.b at gatech.edu
Wed Jan 21 11:32:38 PST 2009
On Mon, Jan 19, 2009 at 3:31 PM, Mathieu Lacage
<mathieu.lacage at sophia.inria.fr> wrote:
> On Sun, 2009-01-18 at 12:57 +0100, Mathieu Lacage wrote:
>
>> I wonder why you don't just forward all the SeedManager::Set/Get method
>> calls to the RngStream class rather than keep track of your own global
>> see: it would save you from having to keep your own set of static global
>> seeds (the same variables are stored in RngStream), you could move
>> the ::Initialize code below to RngStream::RngStream and remove the call
>> to ::Initialize from all the GetValue methods.
>
> I implemented the necessary bits in RngStream for the above (in attached
> patch). The only missing piece is modifying the RandomVariable code
> which I could do if you want me to.
>
Could you provide a patch to do what you propose?
--
Raj Bhattacharjea
Georgia Institute of Technology
School of Electrical and Computer Engineering
Ph.D. Candidate
Systems Analyst
404.894.2955
More information about the Ns-developers
mailing list