Ed Tomlinson wrote:
> No I have _not_ missed the point.  If you map each key onto the rim
> of a circle and average resulting the x and y coords of all the keys
> you get an average in a circular keyspace.  Try it.

Oh sorry I was being dense, to convert back you do arctan(avg_x/avg_y)
to get the angle and then if avg_y < 0 add 180, else if avg_x < 0 add 360.

> If fact radius of the averaged x, y will also be a measure of just
> how specialized your store is... (eg r = sqrt(average(x
> cords)^2+average(y cords)^2)

Very cool!

Cheers,
Michael

Reply via email to