mtalg.random.laplace
- laplace(loc: Number = 0.0, scale: Number = 1.0, size: int | tuple | None = None) ndarray | Number[source]
Draw from a Laplace distribution.
- Parameters:
loc – The position, μ, of the distribution peak. Default is 0.
scale – λ, the exponential decay. Default is 1. Must be non- negative.
size – Output shape.
- Returns:
numpy.ndarray or scalar.