/ lib / numpy / random / __init__.pyc
__init__.pyc
  1  o

  2  [��c)�@s�dZgd�ZddlmZddlmZddlmZddlmZmZddl	m
  3  Z
  4  mZddlm
Z
dd	lmZmZdd
  5  lmZddlmZddlTegd
�7Zdd�ZddlmZee�Z[dS)a_
  6  ========================
  7  Random Number Generation
  8  ========================
  9  
 10  Use ``default_rng()`` to create a `Generator` and call its methods.
 11  
 12  =============== =========================================================
 13  Generator
 14  --------------- ---------------------------------------------------------
 15  Generator       Class implementing all of the random number distributions
 16  default_rng     Default constructor for ``Generator``
 17  =============== =========================================================
 18  
 19  ============================================= ===
 20  BitGenerator Streams that work with Generator
 21  --------------------------------------------- ---
 22  MT19937
 23  PCG64
 24  PCG64DXSM
 25  Philox
 26  SFC64
 27  ============================================= ===
 28  
 29  ============================================= ===
 30  Getting entropy to initialize a BitGenerator
 31  --------------------------------------------- ---
 32  SeedSequence
 33  ============================================= ===
 34  
 35  
 36  Legacy
 37  ------
 38  
 39  For backwards compatibility with previous versions of numpy before 1.17, the
 40  various aliases to the global `RandomState` methods are left alone and do not
 41  use the new `Generator` API.
 42  
 43  ==================== =========================================================
 44  Utility functions
 45  -------------------- ---------------------------------------------------------
 46  random               Uniformly distributed floats over ``[0, 1)``
 47  bytes                Uniformly distributed random bytes.
 48  permutation          Randomly permute a sequence / generate a random sequence.
 49  shuffle              Randomly permute a sequence in place.
 50  choice               Random sample from 1-D array.
 51  ==================== =========================================================
 52  
 53  ==================== =========================================================
 54  Compatibility
 55  functions - removed
 56  in the new API
 57  -------------------- ---------------------------------------------------------
 58  rand                 Uniformly distributed values.
 59  randn                Normally distributed values.
 60  ranf                 Uniformly distributed floating point numbers.
 61  random_integers      Uniformly distributed integers in a given range.
 62                       (deprecated, use ``integers(..., closed=True)`` instead)
 63  random_sample        Alias for `random_sample`
 64  randint              Uniformly distributed integers in a given range
 65  seed                 Seed the legacy random number generator.
 66  ==================== =========================================================
 67  
 68  ==================== =========================================================
 69  Univariate
 70  distributions
 71  -------------------- ---------------------------------------------------------
 72  beta                 Beta distribution over ``[0, 1]``.
 73  binomial             Binomial distribution.
 74  chisquare            :math:`\chi^2` distribution.
 75  exponential          Exponential distribution.
 76  f                    F (Fisher-Snedecor) distribution.
 77  gamma                Gamma distribution.
 78  geometric            Geometric distribution.
 79  gumbel               Gumbel distribution.
 80  hypergeometric       Hypergeometric distribution.
 81  laplace              Laplace distribution.
 82  logistic             Logistic distribution.
 83  lognormal            Log-normal distribution.
 84  logseries            Logarithmic series distribution.
 85  negative_binomial    Negative binomial distribution.
 86  noncentral_chisquare Non-central chi-square distribution.
 87  noncentral_f         Non-central F distribution.
 88  normal               Normal / Gaussian distribution.
 89  pareto               Pareto distribution.
 90  poisson              Poisson distribution.
 91  power                Power distribution.
 92  rayleigh             Rayleigh distribution.
 93  triangular           Triangular distribution.
 94  uniform              Uniform distribution.
 95  vonmises             Von Mises circular distribution.
 96  wald                 Wald (inverse Gaussian) distribution.
 97  weibull              Weibull distribution.
 98  zipf                 Zipf's distribution over ranked data.
 99  ==================== =========================================================
100  
101  ==================== ==========================================================
102  Multivariate
103  distributions
104  -------------------- ----------------------------------------------------------
105  dirichlet            Multivariate generalization of Beta distribution.
106  multinomial          Multivariate generalization of the binomial distribution.
107  multivariate_normal  Multivariate generalization of the normal distribution.
108  ==================== ==========================================================
109  
110  ==================== =========================================================
111  Standard
112  distributions
113  -------------------- ---------------------------------------------------------
114  standard_cauchy      Standard Cauchy-Lorentz distribution.
115  standard_exponential Standard exponential distribution.
116  standard_gamma       Standard Gamma distribution.
117  standard_normal      Standard normal distribution.
118  standard_t           Standard Student's t-distribution.
119  ==================== =========================================================
120  
121  ==================== =========================================================
122  Internal functions
123  -------------------- ---------------------------------------------------------
124  get_state            Get tuple representing internal state of generator.
125  set_state            Set state of generator.
126  ==================== =========================================================
127  
128  
129  )2�beta�binomial�bytes�	chisquare�choice�	dirichlet�exponential�f�gamma�	geometric�	get_state�gumbel�hypergeometric�laplace�logistic�	lognormal�	logseries�multinomial�multivariate_normal�negative_binomial�noncentral_chisquare�noncentral_f�normal�pareto�permutation�poisson�power�rand�randint�randn�random�random_integers�
random_sample�ranf�rayleigh�sample�seed�	set_state�shuffle�standard_cauchy�standard_exponential�standard_gamma�standard_normal�
130  standard_t�
131  triangular�uniform�vonmises�wald�weibull�zipf�)�_pickle)�_common)�_bounded_integers)�	Generator�default_rng)�SeedSequence�BitGenerator)�MT19937)�PCG64�	PCG64DXSM)�Philox)�SFC64)�*)
132  r7�RandomStater9r;r>r<r=r?r8r:cCs
133  tdd�S)a�Return a RandomState instance.
134  
135      This function exists solely to assist (un)pickling.
136  
137      Note that the state of the RandomState returned here is irrelevant, as this
138      function's entire purpose is to return a newly allocated RandomState whose
139      state pickle can set.  Consequently the RandomState returned by this function
140      is a freshly allocated copy with a seed=0.
141  
142      See https://github.com/numpy/numpy/issues/4763 for a detailed discussion
143  
144      �)r%)rA�rCrC��C:\Users\Jacks.GUTTSPC\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\numpy\random\__init__.py�__RandomState_ctor�s
145  
rErB)�PytestTesterN)�__doc__�__all__�r4r5r6�
146  _generatorr7r8�
bit_generatorr9r:�_mt19937r;�_pcg64r<r=�_philoxr>�_sfc64r?�mtrandrE�numpy._pytesttesterrF�__name__�testrCrCrCrD�<module>s"}6