org.jfree.data.statistics
Class SimpleHistogramBin
java.lang.Object
org.jfree.data.statistics.SimpleHistogramBin
- Cloneable, Comparable, PublicCloneable, Serializable
extends java.lang.Object
implements Comparable, Cloneable, PublicCloneable, Serializable
SimpleHistogramBin(double lowerBound, double upperBound) - Creates a new bin.
|
SimpleHistogramBin(double lowerBound, double upperBound, boolean includeLowerBound, boolean includeUpperBound) - Creates a new bin.
|
boolean | accepts(double value) - Returns
true if the specified value belongs in the bin,
and false otherwise.
|
Object | clone() - Returns a clone of the bin.
|
int | compareTo(Object obj) - Compares the bin to an arbitrary object and returns the relative
ordering.
|
boolean | equals(Object obj) - Tests this bin for equality with an arbitrary object.
|
int | getItemCount() - Returns the item count.
|
double | getLowerBound() - Returns the lower bound.
|
double | getUpperBound() - Return the upper bound.
|
boolean | overlapsWith(SimpleHistogramBin bin) - Returns
true if this bin overlaps with the specified bin,
and false otherwise.
|
void | setItemCount(int count) - Sets the item count.
|
SimpleHistogramBin
public SimpleHistogramBin(double lowerBound,
double upperBound)
Creates a new bin.
lowerBound
- the lower bound (inclusive).upperBound
- the upper bound (inclusive);
SimpleHistogramBin
public SimpleHistogramBin(double lowerBound,
double upperBound,
boolean includeLowerBound,
boolean includeUpperBound)
Creates a new bin.
lowerBound
- the lower bound.upperBound
- the upper bound.includeLowerBound
- include the lower bound?includeUpperBound
- include the upper bound?
accepts
public boolean accepts(double value)
Returns true
if the specified value belongs in the bin,
and false
otherwise.
clone
public Object clone()
throws CloneNotSupportedException
Returns a clone of the bin.
compareTo
public int compareTo(Object obj)
Compares the bin to an arbitrary object and returns the relative
ordering.
- An integer indicating the relative ordering of the this bin and
the given object.
equals
public boolean equals(Object obj)
Tests this bin for equality with an arbitrary object.
obj
- the object (null
permitted).
getItemCount
public int getItemCount()
Returns the item count.
getLowerBound
public double getLowerBound()
Returns the lower bound.
getUpperBound
public double getUpperBound()
Return the upper bound.
overlapsWith
public boolean overlapsWith(SimpleHistogramBin bin)
Returns true
if this bin overlaps with the specified bin,
and false
otherwise.
bin
- the other bin (null
not permitted).
setItemCount
public void setItemCount(int count)
Sets the item count.