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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
The number of items in the bin.private double
The end boundary.private static final long
For serialization.private double
The start boundary. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Returns a clone of the bin.boolean
Tests this object for equality with an arbitrary object.double
Returns the bin width.int
getCount()
Returns the number of items in the bin.double
Returns the end boundary.double
Returns the start boundary.void
Increments the item count.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor serialization.- See Also:
-
count
private int countThe number of items in the bin. -
startBoundary
private double startBoundaryThe start boundary. -
endBoundary
private double endBoundaryThe end boundary.
-
-
Constructor Details
-
HistogramBin
public HistogramBin(double startBoundary, double endBoundary) Creates a new bin.- Parameters:
startBoundary
- the start boundary.endBoundary
- the end boundary.
-
-
Method Details
-
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
Tests this object for equality with an arbitrary object. -
clone
Returns a clone of the bin.- Overrides:
clone
in classObject
- Returns:
- A clone.
- Throws:
CloneNotSupportedException
- not thrown by this class.
-