Class HistogramBin

    • Constructor Detail

      • HistogramBin

        public HistogramBin​(double startBoundary,
                            double endBoundary)
        Creates a new bin.
        Parameters:
        startBoundary - the start boundary.
        endBoundary - the end boundary.
    • Method Detail

      • getCount

        public int getCount()
        Returns the number of items in the bin.
        Returns:
        The item count.
      • incrementCount

        public void incrementCount()
        Increments the item count.
      • getStartBoundary

        public double getStartBoundary()
        Returns the start boundary.
        Returns:
        The start boundary.
      • getEndBoundary

        public double getEndBoundary()
        Returns the end boundary.
        Returns:
        The end boundary.
      • getBinWidth

        public double getBinWidth()
        Returns the bin width.
        Returns:
        The bin width.
      • equals

        public boolean equals​(Object obj)
        Tests this object for equality with an arbitrary object.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object to test against.
        Returns:
        A boolean.