-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Somebody in the thread at some point said: | On 18.06.2008 22:46, Dale Schumacher wrote: |> The averaging scheme seems overly complicated. Using a "median" instead of |> a "mean" (average) would automatically reject outliers and would also track |> the mid-point of a moving signal. There should also be less math involved |> since you would only be sorting 2 sets of 32 values.
| Exactly what I suggested as well. I don't understand why people | absolutely want to use averages and throw away outliers based on average | calculations. Maybe because the concept of "mean" is easier to grasp | than the concept of "median". A median solves all these problems of data | having outliers with less math and better accuracy. It's not a bad idea at all. You're quite right it "automatically rejects outliers". But, it's going to get a bit slow as the number of samples held in whatever the sorting structure is increases, and I doubt an efficient implementation will be less "complicated"... but if someone wants to send patches I'll be happy to be wrong. - -Andy -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iEYEARECAAYFAkhZluAACgkQOjLpvpq7dMrHbQCbBnb7YlE+W/mLO2qqrqN4AWM0 HH8An3MOOLiQq1a3n0hmuBSGzIBAL9Wu =8AqQ -----END PGP SIGNATURE-----
