dask 2021.10.0

ParametersReturnsBackRef
standard_exponential(self, size=None, chunks='auto', **kwargs)

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

Some inconsistencies with the Dask version may exist.

standard_exponential is identical to the exponential distribution with a scale parameter of 1.

note

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

Parameters

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. Default is None, in which case a single value is returned.

Returns

out : float or ndarray

Drawn samples.

Draw samples from the standard exponential distribution.

See Also

Generator.standard_exponential

which should be used for new code.

Examples

Output a 3x8000 array:

This example is valid syntax, but we were not able to check execution
>>> n = np.random.standard_exponential((3, 8000))  # doctest: +SKIP
See :

Back References

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

dask.array.random.RandomState.standard_exponential

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#403
type: <class 'function'>
Commit: