randomly.points
randomly.points¶
- randomly.points.generate_poisson_points(bounds: Tuple[float, float, float, float], rate: float) numpy.ndarray [source]¶
Create coordinate pairs from a Poisson process
- Parameters
bounds (Tuple[float, float, float, float]) –
(minx, miny, maxx, maxy)
of the bounding boxrate (float) – Theoretical events per unit area across the whole space.
- Returns
Array of shape
(N pairs, 2)
where each pair is x and y coordinates inside the bounding box.- Return type
np.ndarray