eradiate.scenes.atmosphere.UniformParticleDistribution#
- class eradiate.scenes.atmosphere.UniformParticleDistribution(bounds=[0.0, 1.0])[source]#
Bases:
ParticleDistribution
Uniform particle distribution [
uniform
].Returns values given by the uniform PDF
\[\begin{split}f : x \mapsto \left\{ \begin{array}{ll} \frac{1}{b - a} & \mathrm{if} \ x \in [a, b] \\ 0 & \mathrm{otherwise} \end{array} \right.\end{split}\]where \(a = \mathtt{bounds[0]}\) and \(b = \mathtt{bounds[1]}\).
- Parameters:
bounds (array-like, optional, default:
[0
,1]
) – Bounds of the distribution’s interval.- Fields:
bounds (array) – Bounds of the distribution’s interval.