>On 2055, I think it would be simpler mathematically if the extra values go >into the first bins. The expression for which bin a value goes into becomes > > value/((2**M)/N) > >instead of something messier like > > (((2**M)/N)-1)-((2**M)-value)/((2**M)/N) Oops, need the ((2**M)/N) to round up, so that should be ceil((2.0**M)/N) or ((2**M+N-1)/N) instead of ((2**M)/N). Perhaps there is a simpler way to write the messier expression, which I didn't come up with. I am pretty sure it is not as simple as integer division by a constant that puts the extras into the first bins. Steven Sharp sharp@cadence.com -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Mon Oct 22 16:18:00 2007
This archive was generated by hypermail 2.1.8 : Mon Oct 22 2007 - 16:18:09 PDT