A helper function for segment, box and cube counting fractal methods.
The function divide the array into n
pieces and counts how many are
occupied.
cell_count_2d(pts, xmin, xmax, ymin, ymax, n)
Data frame with x and y coordinates
Minimum x-value
Maximum x-value
Minimum y-value
Maximum y-value
Multiplier
Number of filled cells