Uniform particle distribution. 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.