I got there first, AND posted an actual way of finding highest and lowest ;-) On 7/15/05, James Newtons Massmind wrote: > Find the min, find the max, use the remaining value. > > --- > James. > > > > > -----Original Message----- > > From: piclist-bounces@mit.edu > > [mailto:piclist-bounces@mit.edu] On Behalf Of Mark Rages > > Sent: 2005 Jul 15, Fri 10:26 > > To: piclist@mit.edu > > Subject: [PIC] Design Challenge: Find center of three values > > > > Here's a design challenge for you guys: > > > > I have values in three file registers: fileA, fileB, fileC. > > > > I want to choose the value that's in the middle (numerically) > > and put it into W. > > > > The brute-force way to do this would be to copy the list, > > sort the copy in place, and choose the middle value. > > > > I'm sure there's a more direct way. Any ideas? > > > > (Application: This a simple nonlinear filter to remove > > occasional outliers in a sampled data stream.) > > > > Regards, > > Mark > > markrages@gmail > > -- > > You think that it is a secret, but it never has been one. > > - fortune cookie > > > > -- > > http://www.piclist.com PIC/SX FAQ & list archive View/change > > your membership options at > > http://mailman.mit.edu/mailman/listinfo/piclist > > > > > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- Dave All us base are belong to you. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist