__init__.pyc
1 o 2 [��c) � @ s� d Z g d�ZddlmZ ddlmZ ddlmZ ddlmZmZ ddl m 3 Z 4 mZ ddlm Z dd lmZmZ dd 5 lmZ ddlmZ ddlT eg d �7 Zdd� ZddlmZ ee�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 �RandomStater9 r; r>