bryanhanson / LindenmayeR

Lindenmayer or L-Systems in R
7 stars 1 forks source link

Function to calculate fractal dimension with Lsys? #5

Open HaoLi111 opened 5 years ago

HaoLi111 commented 5 years ago

As title. This would be meaningful for classification( and is not very hard). Will get back.

HaoLi111 commented 5 years ago

A draft for this:

  1. define fractal, extract n as the number of basic segments(as presented by one 'F') and scaling factor from the coordinate calculate (may require drawLsys() function to return the coordinate values)
  2. express number of basic unit n, and scaling factor s as the expression for x
  3. summarize, hence evaluate

$$\lim{s\rightarrow 0} log{\frac{1}{s}}{n}$$ see also Chapter 4: Calculating Fractal Dimensions - Bernt Wahl Chapter 4: Calculating Fractal Dimensions - Bernt Wahl www.wahl.org/fe/HTML_version/link/FE4W/c4.htm