Package org.jfree.data.statistics
Class HistogramBin
java.lang.Object
org.jfree.data.statistics.HistogramBin
- All Implemented Interfaces:
Serializable,Cloneable
A bin for the
HistogramDataset class.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a clone of the bin.booleanTests this object for equality with an arbitrary object.doubleReturns the bin width.intgetCount()Returns the number of items in the bin.doubleReturns the end boundary.doubleReturns the start boundary.voidIncrements the item count.
-
Constructor Details
-
HistogramBin
Creates a new bin.- Parameters:
startBoundary- the start boundary.endBoundary- the end boundary.
-
-
Method Details
-
getCount
Returns the number of items in the bin.- Returns:
- The item count.
-
incrementCount
Increments the item count. -
getStartBoundary
Returns the start boundary.- Returns:
- The start boundary.
-
getEndBoundary
Returns the end boundary.- Returns:
- The end boundary.
-
getBinWidth
Returns the bin width.- Returns:
- The bin width.
-
equals
Tests this object for equality with an arbitrary object. -
clone
Returns a clone of the bin.- Overrides:
clonein classObject- Returns:
- A clone.
- Throws:
CloneNotSupportedException- not thrown by this class.
-