Class DiscretizedRangeEqual
java.lang.Object
io.deephaven.plot.datasets.histogram.DiscretizedRangeEqual
- All Implemented Interfaces:
DiscretizedRange
,Serializable
DiscretizedRange
where all bins are equal length.- See Also:
-
Constructor Summary
ConstructorDescriptionDiscretizedRangeEqual
(double min, double max, int nBins) Creates a DiscretizedRangeEqual instance with specifiedmin
andmax
withnBins
equally sized bins. -
Method Summary
-
Constructor Details
-
DiscretizedRangeEqual
public DiscretizedRangeEqual(double min, double max, int nBins) Creates a DiscretizedRangeEqual instance with specifiedmin
andmax
withnBins
equally 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:DiscretizedRange
Gets the min value of the bin atindex
.- Specified by:
binMin
in interfaceDiscretizedRange
- Parameters:
index
- index- Returns:
- min value of the bin specified by
index
-
binMax
public double binMax(long index) Description copied from interface:DiscretizedRange
Gets the max value of the bin atindex
.- Specified by:
binMax
in interfaceDiscretizedRange
- Parameters:
index
- index- Returns:
- max value of the bin specified by
index
-
index
public long index(double value) Description copied from interface:DiscretizedRange
Gets the index of the bin thevalue
lies in.- Specified by:
index
in interfaceDiscretizedRange
- Parameters:
value
- value- Returns:
- max value of the bin specified by
index
-