Hi, it is actually the so called "geometric average", which is a product of all members, then its n-th root, where n is the number of members. It is an interessant question, whether logarithming consumes more time for PIC or multiplying (in both case floating-point arithmetic assumed). Regards, Imre On Thu, 11 Sep 2003, Harold Hallikainen wrote: > There are ways of decreasing the effect of widely variable data, but you then don't have the mean. I'm trying to remember the method we used in AM broadcast field strength readings to smooth the readings. OK, I just found it. It's the logarithmic average: "The logarithmic average > for each radial is the antilogarithm of the mean of the logarithms of > the ratios of field strength (new to old) for each measurement location > along a given radial." So, to get the log average, you take the log of each reading, average them, then take the antilog. This is from http://kauko.hallikainen.org/FCC/FccRules/2002/73/154/ > > Harold > > > FCC Rules Online at http://www.hallikainen.com > > > > -- John Pearson wrote: > > > Is there a simple routine for finding a mean average? > > I am currently getting just an average by simply adding numbers to one variable, and then dividing it by the number of numbers added to the variable. > > But is there a simple way to eliminate the numbers that are not as common as the majority. > > Thanks > > John > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > ________________________________________________________________ > The best thing to hit the internet in years - Juno SpeedBand! > Surf the web up to FIVE TIMES FASTER! > Only $14.95/ month - visit www.juno.com to sign up today! > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.