|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21572/root/usr/lib64/python2.4/site-packages/Numeric/RNG/ |
Upload File : |
mò
åòC>c @ s8 d Z d k Z d k Te d ƒ Z d „ Z d „ Z d S( sÇ
x=CreateGenerator(seed) creates an random number generator stream
seed < 0 ==> Use the default initial seed value.
seed = 0 ==> Set a "random" value for the seed from the system clock.
seed > 0 ==> Set seed directly (32 bits only).
x.ranf() samples from that stream.
x.sample(n) returns a vector from that stream.
ranf() returns a stream of random numbers
random_sample(n) returns a vector of length n filled with random numbers
N( t *iÿÿÿÿc C s
t i ƒ S( s5 ranf() = a random number from the standard generator.N( t standard_generatort ranf( ( ( t: /usr/lib64/python2.4/site-packages/Numeric/RNG/__init__.pyR s c G sR | p t i d ƒ Sn d } x | D] } | | } q% Wt i t i | ƒ | ƒ S( st random_sample(n) = array of n random numbers;
random_sample(n1, n2, ...)= random array of shape (n1, n2, ..)i N( t nR t samplet mt it Numerict reshape( R R R ( ( R t
random_sample s ( t __doc__R t RNGt CreateGeneratorR R R
( R R
R R ( ( R t ? s