Exponential#
- class braintools.init.Exponential(scale, unit=None)#
Exponential distribution initialization.
Generates values from an exponential distribution.
- Parameters:
scale (
Array|ndarray|bool|number|bool|int|float|complex|Quantity) – Scale parameter (1/lambda) of the exponential distribution.
Examples
>>> import numpy as np >>> import brainunit as u >>> from braintools.init import Exponential >>> >>> init = Exponential(0.5 * u.siemens) >>> rng = np.random.default_rng(0) >>> weights = init(1000, rng=rng)