Class Weighted_HistogramBin
java.lang.Object
microsim.gui.plot.Weighted_HistogramBin
- All Implemented Interfaces:
Serializable, Cloneable
A bin for the
Weighted_HistogramDataset class.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWeighted_HistogramBin(double startBoundary, double endBoundary) Creates a new bin. -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns a clone of the bin.booleanTests this object for equality with an arbitrary object.doubleReturns the bin width.doublegetCount()Returns the number of items in the bin.doubleReturns the end boundary.doubleReturns the start boundary.voidincrementCount(double weight) Increments the item count.
-
Constructor Details
-
Weighted_HistogramBin
public Weighted_HistogramBin(double startBoundary, double endBoundary) Creates a new bin.- Parameters:
startBoundary- the start boundary.endBoundary- the end boundary.
-
-
Method Details
-
getCount
public double getCount()Returns the number of items in the bin.- Returns:
- The item count.
-
incrementCount
public void incrementCount(double weight) 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
-
clone
Returns a clone of the bin.- Overrides:
clonein classObject- Returns:
- A clone.
- Throws:
CloneNotSupportedException- not thrown by this class.
-