[Numpy-discussion] Any Numeric or numarray users on this list?
Travis Oliphant
oliphant.travis at ieee.org
Tue Jun 13 12:52:07 EDT 2006
konrad.hinsen at laposte.net wrote:
> On 10.06.2006, at 01:57, Travis Oliphant wrote:
>
>
>> You may be interested to note that I just added the RNG interface
>> to numpy for back-wards compatibility. It can be accessed and used
>> by re-placing
>>
>> import RNG
>>
>> with
>>
>> import numpy.random.oldrng as RNG
>>
>
> Thanks, that will facilitate the transition. Is this just a
> compatible interface, or actually the same algorithm as in the
> original RNG module?
>
If I understand your question correctly, then it's just a compatibility
interface. I'm not sure which part of the original algorithm you are
referring to.
The random numbers are generated by the Mersenne Twister algorithm in
mtrand. Each generator in numpy.random.oldrng creates a new RandomState
for generation using that algorithm. The density function
calculations were taken from RNG, but the random-number generators
themselves are methods of the RandomState.
-Travis
More information about the NumPy-Discussion
mailing list