Bonus points, when you convert back to polar, the length vector is proporti= onal to bearing quality. =20 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? > >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 --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .