For different side lengths r we count N(r), the smallest number of boxes of side length r needed to cover the shape.
How does N(r) depend on r?
For more complicated shapes, the relation between N(r) and 1/r may not be so clear.
If we suspect that N(r) is approximately
Log(N(r)) = Log(k) + Log((1/r)d) = dLog(1/r) + Log(k)
with the expectation that the approximation becomes better for smaller r.
Solving for d and taking the limit as
db = limr->0Log(N(r))/Log(1/r)
(Note as
If the limit exists, it is called the box-counting dimension, db, of the shape.
This limit may be slow to converge; an alternate approach is to notice
Log(N(r)) = dLog(1/r) + Log(k)
is the equation of a straight line with slope d and y-intercept Log(k).
So plotting
Return to Box-Counting Dimension.