The bin2 function

Not as fast as the Tullio example but, fwiw, a good general solution can be found in this post.

Do you know if it is possible to generalize Tulio’s approach for k x k bin sizes?

1 Like