Weibull

Contents

Weibull#

class braintools.init.Weibull(shape, scale)#

Weibull distribution initialization.

Generates values from a Weibull distribution.

Parameters:
  • shape (float) – Shape parameter (k) of the Weibull distribution.

  • scale (Array | ndarray | bool | number | bool | int | float | complex | Quantity) – Scale parameter (lambda) of the Weibull distribution.

Examples

>>> import numpy as np
>>> import brainunit as u
>>> from braintools.init import Weibull
>>>
>>> init = Weibull(shape=1.5, scale=0.5 * u.siemens)
>>> rng = np.random.default_rng(0)
>>> weights = init(1000, rng=rng)