ó ]ÐKc @s dddddddddd g Zd d ljjZd d lZdefd „ƒYZd efd„ƒYZ de fd„ƒYZ de fd„ƒYZ de fd„ƒYZ de fd„ƒYZ e ddƒZdefd„ƒYZed ƒZd„Zd„Zd S(tCreateGeneratortExponentialDistributiontLogNormalDistributiontNormalDistributiontUniformDistributionterrortranftdefault_distributiont random_sampletstandard_generatoriÿÿÿÿNcBseZRS((t__name__t __module__(((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyRst DistributioncBs5eZd„Zd„Zd„Zd„Zd„ZRS(cGs||_||_dS(N(t_metht_args(tselftmethtargs((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyt__init__s cCs t‚dS(N(tNotImplementedError(Rtx((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pytdensityscCs |j|ƒS(N(R(RR((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyt__call__scCst||jƒ|jŒS(N(tgetattrR R(Rtrng((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyt _onesamplescCs)i|d6}t||jƒ|j|ŽS(Ntsize(RR R(RRtntkwds((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyt_samples (R R RRRRR(((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyR s     cBseZd„Zd„ZRS(cCs/|dkrtd‚ntj|d|ƒdS(Nisparameter must be positivet exponential(RR R(Rtlambda_((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyR%s  cCs7|dkrdStjd}|tj| |ƒSdS(Nig(RRtmathtexp(RR((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyR*s  (R R RR(((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyR$s cBseZd„Zd„ZRS(cCs¹t|ƒ}t|ƒ}|dkr0td‚ntj|d||ƒtjd||||ƒ}tj|ƒd||_tj|ƒ|_dtjdtj ƒ|j|_ dS(Nis#standard deviation must be positivet lognormalgð?gà?i( tfloatRR RR tlogt_mntsqrtt_sntpit_fac(Rtmtstsn((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyR2s    cCsLtj\}}tj|ƒtjtj}tjtjd||ƒ|S(Ngà¿(RRR R$R%R'R)R!(RR*R+ty((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyR=s(R R RR(((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyR1s cBseZd„Zd„ZRS(cCskt|ƒ}t|ƒ}|dkr0td‚ntj|d||ƒdtjdtjƒ||_dS(Nis#standard deviation must be positivetnormalgð?i(R#RR RR R&R(R)(RR*R+((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyRDs     cCs9tj\}}|||}tjtjd||ƒS(Ngà¿(RRR)R R!(RR*R+R-((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyRLs(R R RR(((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyRCs cBseZd„Zd„ZRS(cCsat|ƒ}t|ƒ}||}|dkr:td‚ntj|d||ƒd||_dS(Nis)width of uniform distribution must be > 0tuniformgð?(R#RR RR)(Rtatbtwidth((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyRRs     cCs6tj\}}||ks'||kr+dStjSdS(Ng(RRR)(RR0R1((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyR[s(R R RR(((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyRQs ggð?cBs&eZdd„Zd„Zd„ZRS(cCs||dkrtjƒ|_n!|dkr?tj|ƒ|_n|dkrTt}nt|tƒsotd‚n||_dS(NisNot a distribution object( tmtt RandomStatet_rngtNoneRt isinstanceR Rt_dist(Rtseedtdist((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyRes     cCs|jj|jƒS(N(R8RR5(R((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyRpscCs|jj|j|ƒS(N(R8RR5(RR((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pytsamplessN(R R R6RRR;(((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyRds cCs tjƒS(s5ranf() = a random number from the standard generator.(R R(((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyRyscGsG|stjƒSd}x|D]}||}qWtj|ƒj|ŒS(sqrandom_sample(n) = array of n random numbers; random_sample(n1, n2, ...)= random array of shape (n1, n2, ..)i(R RR;treshape(RR*ti((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyR}s   (t__all__tnumpy.random.mtrandtrandomtmtrandR3R t ExceptionRtobjectR RRRRRRR RR(((s8/usr/lib/python2.7/site-packages/numpy/oldnumeric/rng.pyts