Just threshold the value into an array containing a sorted list of values, round the fractional index to the nearest interger, and use that to index back into the list.
Here's a quick draft (labVIEW 8.0).
Repeat for each value of your data.
Message Edited by altenbach on 09-27-2007 02:35 PM