Path: utzoo!news-server.csri.toronto.edu!rutgers!usc!elroy.jpl.nasa.gov!sdd.hp.com!hp-pcd!hpcvra.cv.hp.com!dianab From: dianab@hpcvra.cv.hp.com. (Diana Byrne) Newsgroups: comp.sys.handhelds Subject: Re: Another ROM Rev D Bug Message-ID: <25590119@hpcvra.cv.hp.com.> Date: 12 Mar 91 00:19:31 GMT References: <91.067.08:17:15@ira.uka.de> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 16 BINS was designed to treat the interval from xmin to xmax on the real number line as a CLOSED interval (where xmax = xmin + width * N). Thus, it divides the interval into N-1 half-open intervals of the form {x : xi <= x < xi+width} and 1 closed interval {x : xmax-width <= x <= xmax}. xmax is included in the last interval. Your example can be depicted as follows: [----)[----)[----] 1 2 3 4 5 xmin xmax xmin=2, width=1, N=3, xmax=5, there is one value (1) which is less than xmin and no values which are greater than xmax.