On 21-Mar-12 04:34, Mark Rages wrote: > Suppose I have some measurements of an angle as integer degrees in the > range [0, 359]. > > I would like to find an average of these measurements as an estimate > of the true angle. > > A simple numerical average doesn't work: Suppose the measurements are > 0, 1, 359. Then a simple average is 120, but the number I'm looking > for is zero. > > Is there a standard algorithm to do what I want? Yes, of course there is: http://abelian.org/vlf/bearings.html Djula > > Regards, > Mark > markrages@gmail --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .