Re:Finding the World's Economic Center of Gravity
by djvv on Tuesday July 15, 2014 @12:21AM
(#8034757)
Interesting, do you have any ideas how to apply this to finding the average of multiple points on a sphere?
[ Parent
| on HN ]
Re:Finding the World's Economic Center of Gravity
by codezero on Tuesday July 15, 2014 @01:49AM
(#8034982)
Maybe project the x/y coordinates onto a unit sphere, then find the center of mass in spherical coordinates, then convert those spherical coordinates to the relevant 2d coordinate system you're using, discarding the radius (but keeping it for the information it provides).
See also: https://en.wikipedia.org/wiki/Directional_statistics
Re:Finding the World's Economic Center of Gravity
by jofer on Tuesday July 15, 2014 @12:45PM
(#8037493)
That's exactly how it's done, for what it worth (though you use 3D cartesian coordinates instead of spherical coordinates).
Treat each point on the sphere as a 3D unit vector, weight as appropriate, and the center of mass is the sum of all of the vectors.
Re:Finding the World's Economic Center of Gravity
by Houshalter on Tuesday July 15, 2014 @01:25AM
(#8034935)
One way would be to search for points on the sphere which have the closest (weighted) average distance to all the points. Or some similar metric like that.
So instead of finding a point in the middle of the Earth, it would find a point that is geographically closest to the US and China.