util.gen
Class Bin

java.lang.Object
  extended byutil.gen.Bin

public class Bin
extends java.lang.Object

Info and methods about a particular bin, used by the Histogram class.


Constructor Summary
Bin(double start, double stop)
           
 
Method Summary
 boolean contains(double value)
          Returns true if the value is >= bin.start and < bin.stop, thus stop is exclusive, start is inclusive.
 boolean count(double value)
          If value is contains() returns true and increments the bin hit counter, otherwise returns false.
 int getHits()
           
 java.lang.String getLabel()
           
 double getMiddle()
           
 double getStart()
           
 double getStop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bin

public Bin(double start,
           double stop)
Method Detail

contains

public boolean contains(double value)
Returns true if the value is >= bin.start and < bin.stop, thus stop is exclusive, start is inclusive.


count

public boolean count(double value)
If value is contains() returns true and increments the bin hit counter, otherwise returns false.


getLabel

public java.lang.String getLabel()

getHits

public int getHits()

getStart

public double getStart()

getStop

public double getStop()

getMiddle

public double getMiddle()