Hello Scott, > Stefan, > > Your application is nearly identical to mine. (Though I'm not sure of > the size of your data items nor the number of them [but if you were > willing to implement three buffers, then you probably didn't have that > much data]). Essentially you want to create a median filter that > averages too. In other words, you wish to collect a series of N samples, > sort them, throw away the extremes, and then compute the average with > what's remaing. Is that correct? Simply YES :-) - > > If so then you may want to visit the "median filter" I threw out onto a > web page because of Bob Blick's prodding. I will visit your Web-Page. While I still have to look at your Web-Page, discussing with two friends in the amateur-radio-club yesterday evening gave also some new Ideas to me. While the dataset I4ll look at is rather small we came up with the Idea to first filter the data for extremes, using a kind of modifiable window below and over the expected center data. the size and position of the window is modified by monitoring how often per time the window borders are missed. The values passing this "filter" will be stored in the well known circular buffer. because of having this data filtered in fornt of storing, there should be no need for sorting - just average the data. What do you think about this idea - beside I dont know if this way would have been useful for you. Kind regards Stefan Sczekalla-Waldschmidt ssw@oikossw.de