piclist 2002\09\08\160617a >
Thread: Sorting numbers
www.piclist.com/techref/microchip/devices.htm?key=pic
face
flavicon
face BY : Scott Dattalo email (remove spam text)



On Sun, 8 Sep 2002 spamJISAKspam_OUTspamRemoveMENETCOURRIER.COM wrote:

{Quote hidden}

<snip>

FWIW, You can look at

http://www.dattalo.com/technical/software/pic/medfilt.html

As an example for 16-bit numbers.

This code is somewhat different than what you're seeking - maybe. The
purpose of my routine is to low pass filter a stream of analog data. The
sorting part is for a median filter. As a new sample is recieved, it is
put into a circular buffer. A second buffer contains the sorted data.
Well, actually it contains the indices of the sorted data. The filtered
value is obtained by adding together the last N-samples, excluding the
extremes, and dividing by the number of samples added together. In other
words, this routine combines a low pass filter and a median filter into
one filter.

Scott

--
http://www.piclist.com hint: To leave the PICList
spam_OUTpiclist-unsubscribe-requestspam_OUTspamspamBeGonemitvma.mit.edu


<Pine.LNX.4.44.0209081237290.432-100000@ruckus.brouhaha.com>

In reply to: <3D7B8096.45759BCA@netcourrier.com>
See also: www.piclist.com/techref/microchip/devices.htm?key=pic
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Sorting numbers

month overview.

new search...