blob: c284b245c6bfce01a93ca926ed56a33e3177e589 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
.. currentmodule:: numpy.random
Random Generator
----------------
The `~Generator` provides access to
a wide range of distributions, and served as a replacement for
:class:`~numpy.random.RandomState`. The main difference between
the two is that ``Generator`` relies on an additional BitGenerator to
manage state and generate the random bits, which are then transformed into
random values from useful distributions. The default BitGenerator used by
``Generator`` is `~PCG64`. The BitGenerator
can be changed by passing an instantized BitGenerator to ``Generator``.
.. autofunction:: default_gen
.. autoclass:: Generator
:exclude-members:
Accessing the BitGenerator
==========================
.. autosummary::
:toctree: generated/
~Generator.bit_generator
Simple random data
==================
.. autosummary::
:toctree: generated/
~Generator.integers
~Generator.random
~Generator.choice
~Generator.bytes
Permutations
============
.. autosummary::
:toctree: generated/
~Generator.shuffle
~Generator.permutation
Distributions
=============
.. autosummary::
:toctree: generated/
~Generator.beta
~Generator.binomial
~Generator.chisquare
~Generator.dirichlet
~Generator.exponential
~Generator.f
~Generator.gamma
~Generator.geometric
~Generator.gumbel
~Generator.hypergeometric
~Generator.laplace
~Generator.logistic
~Generator.lognormal
~Generator.logseries
~Generator.multinomial
~Generator.multivariate_normal
~Generator.negative_binomial
~Generator.noncentral_chisquare
~Generator.noncentral_f
~Generator.normal
~Generator.pareto
~Generator.poisson
~Generator.power
~Generator.rayleigh
~Generator.standard_cauchy
~Generator.standard_exponential
~Generator.standard_gamma
~Generator.standard_normal
~Generator.standard_t
~Generator.triangular
~Generator.uniform
~Generator.vonmises
~Generator.wald
~Generator.weibull
~Generator.zipf
|