public class IntervalList extends Object
| Constructor and Description |
|---|
IntervalList() |
IntervalList(double minVal,
double maxVal,
double binWidth)
The binned array indexing the intervals goes from minVal to maxVal with bin size binWidth.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInterval(double lBound,
double rBound)
Add new interval to list.
|
boolean |
contains(double value)
Checks whether value is included in any of the intervals
|
double |
getBinWidth() |
double |
getMaxVal() |
double |
getMinVal() |
void |
setBinArrayBounds(double minVal,
double maxVal,
double binWidth)
The binned array indexing the intervals goes from minVal to maxVal with bin size binWidth.
|
public IntervalList()
public IntervalList(double minVal,
double maxVal,
double binWidth)
minVal - Start value of the binned arraymaxVal - End value of the binned arraybinWidth - Bind width of the binned arraypublic void setBinArrayBounds(double minVal,
double maxVal,
double binWidth)
minVal - Start value of the binned arraymaxVal - End value of the binned arraybinWidth - Bind width of the binned arraypublic double getMinVal()
public double getMaxVal()
public double getBinWidth()
public void addInterval(double lBound,
double rBound)
lBound - left bound of intervalrBound - right bound of intervalpublic final boolean contains(double value)
value - value to be testedCopyright © 2016. All Rights Reserved.