touchscreen sampling

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at
Wed Jun 18 23:36:44 CEST 2008

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.

> In fact, I would
> recommend sorting the "x" and "y" coordinate separately.  BTW, for small
> sets of values, linear insertion sorting usually beats fancier methods.



More information about the openmoko-kernel mailing list