Due to SPAM attacks, new members must be approved before posting. Please email email@example.com when registering and your account will be approved.
Started by Matteo Convertino, August 09, 2010, 03:12:28 PM
QuoteThe code is saving the minimum and maximum x and y coordinates where the water to marsh interface is found. It is also saving the number of boxes in which the water to marsh interface is found (NBox). The maximum length (LMax) is calculated using the maximum of the length or width in which interfaces are found. Finally fractal dimension is calculated as Log(NBox) / Log(LMax)From page 60 of the Fractal Images Book, Dimension is Log N / Log (1/r) where r is the ruler length, but N can be considered to be "number of squares containing a piece of the object." Therefore, this function is assuming that LMAX = 1/ruler length. I see where this is expanded on in page 61: NBOX = LMAX ^ D which simplifies to the equation for D in the code.