numpy 1.22.4 Pypi GitHub Homepage
Other Docs
BackRef

To remove in the future –– numpy.random

Random Number Generation

Use default_rng() to create a Generator and call its methods.

=============== ========================================================= Generator --------------- --------------------------------------------------------- Generator Class implementing all of the random number distributions default_rng Default constructor for Generator =============== =========================================================

============================================= === BitGenerator Streams that work with Generator --------------------------------------------- --- MT19937 PCG64 PCG64DXSM Philox SFC64 ============================================= ===

============================================= === Getting entropy to initialize a BitGenerator --------------------------------------------- --- SeedSequence ============================================= ===

Legacy

For backwards compatibility with previous versions of numpy before 1.17, the various aliases to the global RandomState methods are left alone and do not use the new Generator API.

==================== ========================================================= Utility functions -------------------- --------------------------------------------------------- random Uniformly distributed floats over [0, 1) bytes Uniformly distributed random bytes. permutation Randomly permute a sequence / generate a random sequence. shuffle Randomly permute a sequence in place. choice Random sample from 1-D array. ==================== =========================================================

==================== ========================================================= Compatibility functions - removed in the new API -------------------- --------------------------------------------------------- rand Uniformly distributed values. randn Normally distributed values. ranf Uniformly distributed floating point numbers. random_integers Uniformly distributed integers in a given range. (deprecated, use integers(..., closed=True) instead) random_sample Alias for :None:None:`random_sample` randint Uniformly distributed integers in a given range seed Seed the legacy random number generator. ==================== =========================================================

==================== ========================================================= Univariate distributions -------------------- --------------------------------------------------------- beta Beta distribution over [0, 1] . binomial Binomial distribution. chisquare $\chi^2$ distribution. exponential Exponential distribution. f F (Fisher-Snedecor) distribution. gamma Gamma distribution. geometric Geometric distribution. gumbel Gumbel distribution. hypergeometric Hypergeometric distribution. laplace Laplace distribution. logistic Logistic distribution. lognormal Log-normal distribution. logseries Logarithmic series distribution. negative_binomial Negative binomial distribution. noncentral_chisquare Non-central chi-square distribution. noncentral_f Non-central F distribution. normal Normal / Gaussian distribution. pareto Pareto distribution. poisson Poisson distribution. power Power distribution. rayleigh Rayleigh distribution. triangular Triangular distribution. uniform Uniform distribution. vonmises Von Mises circular distribution. wald Wald (inverse Gaussian) distribution. weibull Weibull distribution. zipf Zipf's distribution over ranked data. ==================== =========================================================

==================== ========================================================== Multivariate distributions -------------------- ---------------------------------------------------------- dirichlet Multivariate generalization of Beta distribution. multinomial Multivariate generalization of the binomial distribution. multivariate_normal Multivariate generalization of the normal distribution. ==================== ==========================================================

==================== ========================================================= Standard distributions -------------------- --------------------------------------------------------- standard_cauchy Standard Cauchy-Lorentz distribution. standard_exponential Standard exponential distribution. standard_gamma Standard Gamma distribution. standard_normal Standard normal distribution. standard_t Standard Student's t-distribution. ==================== =========================================================

==================== ========================================================= Internal functions -------------------- --------------------------------------------------------- get_state Get tuple representing internal state of generator. set_state Set state of generator. ==================== =========================================================

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

skimage

20 Elements
skimage.feature._canny.canny
skimage._shared._warnings.expected_warnings
skimage.restoration.deconvolution.wiener
skimage.restoration._denoise.denoise_wavelet
skimage.measure.fit.ransac
skimage.restoration.non_local_means.denoise_nl_means
skimage.filters.edges._reshape_nd
skimage.restoration.j_invariant.calibrate_denoiser
skimage.transform._hough_transform._hough_line
skimage.restoration._denoise.estimate_sigma
skimage.io._io.show
skimage.restoration.deconvolution.unsupervised_wiener
skimage.segmentation.random_walker_segmentation.random_walker
skimage.transform._warps.warp
skimage.restoration._denoise.denoise_bilateral
skimage.feature.orb.ORB
skimage.restoration._denoise.denoise_tv_chambolle
skimage.transform.hough_transform.hough_line
skimage.restoration.deconvolution.richardson_lucy
skimage.restoration._cycle_spin.cycle_spin

dask

41 Elements
dask.array.routines.fliplr
dask.array.core.from_array
dask.array.random.RandomState.gamma
dask.array.random.RandomState.triangular
dask.array.random.RandomState.chisquare
dask.array.random.RandomState.binomial
dask.array.random.RandomState.multinomial
dask.array.random.RandomState.standard_gamma
dask.array.random.RandomState.randint
dask.array.random.RandomState.standard_t
dask.array.random.RandomState.noncentral_chisquare
dask.array.random.RandomState.standard_cauchy
dask.array.random.RandomState.negative_binomial
dask.array.random.RandomState.weibull
dask.array.random.RandomState.laplace
dask.array.random.RandomState.pareto
dask.array.random.RandomState.power
dask.array.routines.flipud
dask.array.routines.corrcoef
dask.array.random.RandomState.logistic
dask.array.random.RandomState.lognormal
dask.array.random.RandomState.tomaxint
dask.array.random.RandomState.permutation
dask.array.random.RandomState.random_integers
dask.array.random.RandomState.poisson
dask.array.random.RandomState.zipf
dask.array.random.RandomState.hypergeometric
dask.array.random.RandomState.uniform
dask.array.random.RandomState.choice
dask.array.random.RandomState.rayleigh
dask.array.random.RandomState.vonmises
dask.array.random.RandomState.noncentral_f
dask.array.random.RandomState.f
dask.array.random.RandomState.random_sample
dask.array.random.RandomState.wald
dask.array.random.RandomState.standard_normal
dask.array.random.RandomState.logseries
dask.array.random.RandomState.normal
dask.array.random.RandomState.standard_exponential
dask.array.random.RandomState.gumbel
dask.array.random.RandomState.geometric

scipy

71 Elements
scipy.spatial._kdtree.KDTree.count_neighbors
scipy.spatial._qhull.ConvexHull
scipy.fft._realtransforms.idctn
scipy.signal._bsplines.cspline1d_eval
scipy.optimize._basinhopping.basinhopping
scipy.interpolate._bsplines.make_lsq_spline
scipy.fft._helper.next_fast_len
scipy.linalg._expm_frechet.expm_frechet
scipy.signal._signaltools.choose_conv_method
scipy.signal._signaltools.lfilter
scipy.linalg.blas.get_blas_funcs
scipy.interpolate._ndgriddata.griddata
scipy.signal._signaltools.detrend
scipy.signal._bsplines.cspline1d
scipy.signal._signaltools.oaconvolve
scipy.linalg.blas.find_best_blas_type
scipy.linalg._decomp_svd.subspace_angles
scipy.sparse.linalg._eigen.lobpcg.lobpcg.lobpcg
scipy.optimize._optimize.check_grad
scipy.signal._signaltools.filtfilt
scipy.fft._basic.ifft
scipy.interpolate._fitpack2.UnivariateSpline
scipy.linalg._decomp_svd.null_space
scipy.sparse._construct.random
scipy.signal._spectral_py.csd
scipy.spatial._plotutils.voronoi_plot_2d
scipy.fft._realtransforms.idstn
scipy.spatial._kdtree.KDTree.query_pairs
scipy.signal._signaltools.correlate
scipy.spatial._plotutils.convex_hull_plot_2d
scipy.spatial._kdtree.KDTree.sparse_distance_matrix
scipy.linalg._decomp_qz.qz
scipy.signal._spectral_py.istft
scipy.interpolate._ndgriddata.NearestNDInterpolator
scipy.linalg._decomp_qr.qr
scipy.linalg._basic.pinv
scipy.signal._signaltools.correlate2d
scipy.signal._signaltools.wiener
scipy.signal._bsplines.qspline1d
scipy.fft._realtransforms.dctn
scipy.interpolate._polyint.KroghInterpolator
scipy.spatial._qhull.tsearch
scipy.signal._spectral_py.lombscargle
scipy.interpolate._fitpack2.LSQUnivariateSpline
scipy.signal._filter_design.freqz
scipy.sparse.linalg._eigen._svds.svds
scipy.signal._signaltools.sosfiltfilt
scipy.signal._signaltools.correlation_lags
scipy.signal._bsplines.qspline1d_eval
scipy.fft._basic.ifftn
scipy.signal._spectral_py.welch
scipy.spatial._plotutils.delaunay_plot_2d
scipy.interpolate._fitpack2.InterpolatedUnivariateSpline
scipy.signal._spectral_py.spectrogram
scipy.interpolate._rbfinterp.RBFInterpolator
scipy.optimize._minpack_py.curve_fit
scipy.fft._pocketfft.helper.set_workers
scipy.signal._spectral_py.periodogram
scipy.linalg._decomp_svd.svd
scipy.optimize._zeros_py.newton
scipy.spatial._kdtree.KDTree.query_ball_tree
scipy.interpolate._rbf.Rbf
scipy.linalg.lapack.get_lapack_funcs
scipy.signal._signaltools.fftconvolve
scipy.signal._spectral_py.coherence
scipy.signal._spectral_py.stft
scipy.linalg._basic.pinvh
scipy.fft._basic.fftn
scipy.fft._realtransforms.dstn
scipy.linalg._decomp_qr.rq
scipy.interpolate.interpnd.LinearNDInterpolator

networkx

networkx.utils.decorators.np_random_state
networkx.convert_matrix.from_pandas_edgelist

numpy

numpy.random._generator.Generator

pandas

pandas.core.reshape.melt.wide_to_long
pandas.core.frame.DataFrame.cov
pandas.core.series.Series.info
pandas.io.pytables.HDFStore
pandas.core.frame.DataFrame.info

papyri

papyri.examples.example2

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /numpy/random/__init__.py#0
type: <class 'module'>
Commit: