dask 2021.10.0

ParametersReturns
exponential(self, scale=1.0, size=None, chunks='auto', **kwargs)

This docstring was copied from numpy.random.mtrand.RandomState.exponential.

Some inconsistencies with the Dask version may exist.

Its probability density function is

$$f(x; \frac{1}{\beta}) = \frac{1}{\beta} \exp(-\frac{x}{\beta}),$$

for x > 0 and 0 elsewhere. $\beta$ is the scale parameter, which is the inverse of the rate parameter $\lambda = 1/\beta$ . The rate parameter is an alternative, widely used parameterization of the exponential distribution .

The exponential distribution is a continuous analogue of the geometric distribution. It describes many common situations, such as the size of raindrops measured over many rainstorms , or the time between page requests to Wikipedia .

note

New code should use the exponential method of a default_rng() instance instead; please see the :None:ref:`random-quick-start`.

Parameters

scale : float or array_like of floats

The scale parameter, $\beta = 1/\lambda$ . Must be non-negative.

size : int or tuple of ints, optional

Output shape. If the given shape is, e.g., (m, n, k) , then m * n * k samples are drawn. If size is None (default), a single value is returned if scale is a scalar. Otherwise, np.array(scale).size samples are drawn.

Returns

out : ndarray or scalar

Drawn samples from the parameterized exponential distribution.

Draw samples from an exponential distribution.

See Also

Generator.exponential

which should be used for new code.

Examples

See :

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


File: /dask/array/random.py#281
type: <class 'function'>
Commit: