Skip to content
Prev 76181 / 398502 Next

Quick partitioning

On Thu, 25 Aug 2005, Anna Oganyan wrote:

            
How do you divide a 10D space into 10 hypercubes?  You need at least 
some of dimensions to be undivided.

The general idea is easy: apply cut() to each dimension, so your 
dimensions become factors, then table() will produce the counts.  That 
will be quick enough for millions of points.