Fractal Dimension Computation in Python Code

Jake Speed speed at ?.com
Fri Sep 29 15:35:47 EDT 2000


speed@?.com (Jake Speed) wrote in <st9m8v9uhnkfac at corp.supernews.com>:

>This was so cool, I had to do it!
>(apologies if the Koch curve isn't quite correct)

And of course, it was the actual dimension calculation
that was incorrect.  You need to plot the log of the 
number of boxes against the log of the boxsize for a
range of sizes, then fit a line against them and take 
the slope.  So it's a little more involved than just
a single function call.

http://www.swin.edu.au/astronomy/pbourke/fractals/fracdim/
http://life.csu.edu.au/fractop/doc/notes/chapt2a4.html
http://www.iso.gmu.edu/~pchen/fractal/boxcounting.htm

And I misidentifed 'box counting' as 'box division'.

-Speed!



More information about the Python-list mailing list