Let's see if I'm able to explain this...
I have made a program which calculates the fractal dimension of an image. It seems to be somewhat working now. I use images of fractal with a well-known dimension to test the program.
The calculations can be done in many different ways (placing a grid over the image in different ways) and because of this and the inexactness of raster images I get different possible values.
For example the program give these values for one image:
1.1637 1.2043 1.2736 1.2481 1.3325 1.4155 1.2387 1.2955 1.3128 1.1805
The mean is 1.2665
The theoretical value is log(4)/log(3) = 1.2619
In this example the mean value is very good, but for some images the mean is a bad approximation of the dimension. However, many individual values are close to the theoretical value, but a few really bad values are messing things up.
So, how can I calculate a mean value and (sort of) ignore extreme values?
Least squares fitting? I'm sure there is an easy way...