Current File : //proc/self/root/proc/self/root/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyo
�
E�`Qc
@s
dddddddddd	g
Zd
dljjZd
dlZdefd��YZd
efd��YZ	de	fd��YZ
de	fd��YZde	fd��YZde	fd��YZ
e
dd�Zdefd��YZed
�Zd�Zd�ZdS(tCreateGeneratortExponentialDistributiontLogNormalDistributiontNormalDistributiontUniformDistributionterrortranftdefault_distributiont
random_sampletstandard_generatori����NcBseZRS((t__name__t
__module__(((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyRstDistributioncBs5eZd�Zd�Zd�Zd�Zd�ZRS(cGs||_||_dS(N(t_metht_args(tselftmethtargs((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyt__init__s	cCs
t�dS(N(tNotImplementedError(Rtx((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pytdensityscCs
|j|�S(N(R(RR((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyt__call__scCst||j�|j�S(N(tgetattrR
R(Rtrng((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyt
_onesamplescCs)i|d6}t||j�|j|�S(Ntsize(RR
R(RRtntkwds((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyt_samples
(R
RRRRRR(((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyRs
				cBseZd�Zd�ZRS(cCs/|dkrtd�ntj|d|�dS(Nisparameter must be positivetexponential(RRR(Rtlambda_((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyR%scCs7|dkrdStjd}|tj||�SdS(Nig(RRtmathtexp(RR((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyR*s
(R
RRR(((s:/usr/lib64/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((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyR2scCsLtj\}}tj|�tjtj}tjtjd||�|S(Ng�(RRR R$R%R'R)R!(RR*R+ty((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyR=s(R
RRR(((s:/usr/lib64/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+((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyRDscCs9tj\}}|||}tjtjd||�S(Ng�(RRR)R R!(RR*R+R-((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyRLs(R
RRR(((s:/usr/lib64/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((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyRRs
cCs6tj\}}||ks'||kr+dStjSdS(Ng(RRR)(RR0R1((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyR[s(R
RRR(((s:/usr/lib64/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(	tmttRandomStatet_rngtNoneRt
isinstanceRRt_dist(Rtseedtdist((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyRes	cCs|jj|j�S(N(R8RR5(R((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyRpscCs|jj|j|�S(N(R8RR5(RR((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pytsamplessN(R
RR6RRR;(((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyRds	cCs
tj�S(s5ranf() = a random number from the standard generator.(R	R(((s:/usr/lib64/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((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyR}s

(t__all__tnumpy.random.mtrandtrandomtmtrandR3R t	ExceptionRtobjectRRRRRRRR	RR(((s:/usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyt<module>s