Class DiscretizedRangeEqual
java.lang.Object
com.illumon.iris.db.plot.datasets.histogram.DiscretizedRangeEqual
- All Implemented Interfaces:
DiscretizedRange,Serializable
DiscretizedRange where all bins are equal length.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDiscretizedRangeEqual(double min, double max, int nBins) Creates a DiscretizedRangeEqual instance with specifiedminandmaxwithnBinsequally sized bins. -
Method Summary
-
Constructor Details
-
DiscretizedRangeEqual
public DiscretizedRangeEqual(double min, double max, int nBins) Creates a DiscretizedRangeEqual instance with specifiedminandmaxwithnBinsequally sized bins.- Parameters:
min- minimum of the total rangemax- maximum of the total rangenBins- number of bins
-
-
Method Details
-
binMin
public double binMin(long index) Description copied from interface:DiscretizedRangeGets the min value of the bin atindex.- Specified by:
binMinin interfaceDiscretizedRange- Parameters:
index- index- Returns:
- min value of the bin specified by
index
-
binMax
public double binMax(long index) Description copied from interface:DiscretizedRangeGets the max value of the bin atindex.- Specified by:
binMaxin interfaceDiscretizedRange- Parameters:
index- index- Returns:
- max value of the bin specified by
index
-
index
public long index(double value) Description copied from interface:DiscretizedRangeGets the index of the bin thevaluelies in.- Specified by:
indexin interfaceDiscretizedRange- Parameters:
value- value- Returns:
- max value of the bin specified by
index
-