qp.cluster.spheres_bad.get_grid

qp.cluster.spheres_bad.get_grid(coords, mean_distance)[source]

Compute the grid’s parameter for a given 1D point list

Parameters:
  • coords (numpy.array) – The coordinates of the 1D point list

  • mean_distance (float) – The distance between neighbors in the grid

Returns:

  • coord_min (float) – The minimum coordinate of the grid

  • coord_max (float) – The maximum coordinate of the grid

  • grid (numpy.array) – The 1D grid