Print

Print


On Aug 21, 2012, at 2:56 PM, Luís de Sousa wrote:

> Nevertheless, I'd point that the expression:
> 
> |(x − Xi )| + |(y − Yi )| ≤ dist
> 
> actually defines a circle, not a diamond (this is obvious when dist
> is, say, larger than 5).

Luis, the equation for a circle is:

(x-Xi)^2 + (y-Yi)^2 <= dist^2

I believe the diamond equation is correct.

> On a further release of the manual some illustration of these
> different types of neighbourhoods, with different dist values could be
> helpful.

More work for me.  :-(

Sean