Hmmm, > bin number = min(VALUE/Q, P + (VALUE-P*Q)/(Q+1)) or > min(VALUE/(Q+1), P + (VALUE-P*(Q+1))/Q). That first formula should work, where the last bins get an extra value, but the second formula is not correct. The min function does not give the desired result there. Anyway, it would be if VALUE/(Q+1) <= P, then bin number = VALUE/(Q+1) else bin number = P + (VALUE-P*(Q+1))/Q. I think. Shalom --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Tue Oct 23 04:41:09 2007
This archive was generated by hypermail 2.1.8 : Tue Oct 23 2007 - 04:41:31 PDT