I have a set of {x, y} coordinates, for example:
xmin = 0;
xmax = 100;
ymin = 42;
ymax = 76;
numPoints = 10^5;
pointList = Table[{RandomReal[{xmin, xmax}], RandomReal[{ymin, ymax}]}, {numPoints}];
I would like to break up this set of points into N equal-area squares in the most efficient manner possible, and without binning a point into more than one squares, such that we return a list like the following:
decomposedPointList =
{{...Points In Box 1...},{...Points In Box 2...},...,{...Points In Box N...};
Where the intersection of any two sublists of points is always zero.
Is there a nice way to do this?
pointList=Table[{RandomReal[{xmin,xmax}],RandomReal[ymin,ymax]},{i,1,numPoints}];? Should this not bepointList = Table[{RandomReal[{xmin, xmax}], RandomReal[{ymin, ymax}]}, {numPoints}];so that the second entry is a point and not a list? also, your question is not clear, at least to me. – Nasser Aug 14 '13 at 03:36