eradiate.scenes.atmosphere.ExponentialParticleDistribution

eradiate.scenes.atmosphere.ExponentialParticleDistribution#

class eradiate.scenes.atmosphere.ExponentialParticleDistribution(rate=None, scale=None)[source]#

Bases: ParticleDistribution

Exponential particle distribution [exponential].

Returns values given by the normalized exponential PDF

\[f : x \mapsto \dfrac{\lambda e^{-\lambda x}}{1 - e^{-\lambda}}\]

where \(\lambda = \mathtt{rate}\).

Parameters:
  • rate (float, optional, default: 5.0) – Decay rate \(\lambda\). The default value ensures a 99.3% decay on the [0, 1] interval. Mutually exclusive with scale.

  • scale (float, optional) – Scale \(\beta = 1 / \lambda\). Mutually exclusive with rate.

Fields:

rate (float) – Decay rate \(\lambda\).