Current File : //proc/self/root/proc/self/root/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyo |
�
E�`Qc
@ s
d d d d d d d d d d g
Z d
d l j j Z d
d l Z d e f d � � YZ d
e f d � � YZ d e f d � � YZ
d e f d � � YZ d e f d � � YZ d e f d � � YZ
e
d d � Z d e f d � � YZ e d
� Z d � Z d � Z d S( t CreateGeneratort ExponentialDistributiont LogNormalDistributiont NormalDistributiont UniformDistributiont errort ranft default_distributiont
random_samplet standard_generatori����Nc B s e Z RS( ( t __name__t
__module__( ( ( s: /usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyR s t Distributionc B s5 e Z d � Z d � Z d � Z d � Z d � Z RS( c G s | | _ | | _ d S( N( t _metht _args( t selft metht args( ( s: /usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyt __init__ s c C s
t � d S( N( t NotImplementedError( R t x( ( s: /usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyt density s c C s
| j | � S( N( R ( R R ( ( s: /usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyt __call__ s c C s t | | j � | j � S( N( t getattrR
R ( R t rng( ( s: /usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyt
_onesample s c C s) i | d 6} t | | j � | j | � S( Nt size( R R
R ( R R t nt kwds( ( s: /usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyt _sample s
( R
R R R R R R ( ( ( s: /usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyR s
c B s e Z d � Z d � Z RS( c C s/ | d k r t d � n t j | d | � d S( Ni s parameter must be positivet exponential( R R R ( R t lambda_( ( s: /usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyR % s c C s7 | d k r d St j d } | t j | | � Sd S( Ni g ( R R t matht exp( R R ( ( s: /usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyR * s
( R
R R R ( ( ( s: /usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyR $ s c B s e Z d � Z d � Z RS( c C s� t | � } t | � } | d k r0 t d � n t j | d | | � t j d | | | | � } t j | � d | | _ t j | � | _ d t j d t j � | j | _
d S( Ni s# standard deviation must be positivet lognormalg �?g �?i ( t floatR R R R t logt _mnt sqrtt _snt pit _fac( R t mt st sn( ( s: /usr/lib64/python2.7/site-packages/numpy/oldnumeric/rng.pyR 2 s c C sL t j \ } } t j | � t j t j } t j t j d | | � | S( Ng �( R R R R$ R% R'