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