Mark Rages wrote: >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 > > Your clock is set to July 2005, Mark. -- Note: To protect our network, attachments must be sent to attach@engineer.cotse.net . 1-520-850-1673 USA/Canada http://beam.to/azengineer -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist