> >> This sounds like a problem I faced a while back, averaging compass > >> headings. > >> 90,89,91 averages to 90, no problem, but 359,0,1 averages > to 180 which is > >> dead wrong. > > It's actually NOT "wrong" - it's just not the interpretation > that you wanted to place on the data :-) It might not be wrong when the question is to average numbers, but the question was to average a measurement that is cyclic (circular) in nature, like a compass reading. There is no usefull interpretation of 'right' or 'wrong' without a question. :) Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu _______________________________________________ http://www.piclist.com View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist