public interface IntervalTable
To create an instance of an IntervalTable, use a IntervalTable.Builder.
Internally, an IntervalTable is backed by a double[][]
where a 'row' maps to the 1st dimension and a 'column' the 2nd.
Note that interval tables are not intended for use with very high precision data and keys are currently limited to a precision of 4 decimal places. This may change in the future.
IntervalData,
IntervalArray,
IntervalVolume| Modifier and Type | Interface and Description |
|---|---|
static class |
IntervalTable.Builder
A builder of immutable
IntervalTables. |
static interface |
IntervalTable.Loader
A supplier of values with which to fill a
IntervalTable. |
| Modifier and Type | Method and Description |
|---|---|
IntervalArray |
collapse()
Return a new
IntervalArray created by summing the columns of this
table. |
double |
columnMax()
Return the upper edge of the uppermost column bin.
|
double |
columnMin()
Return the lower edge of the lowermost column bin.
|
List<Double> |
columns()
Return an immutable list view of the column keys (bin centers).
|
double |
columnΔ()
Return the column bin discretization.
|
double |
get(double rowValue,
double columnValue)
Return the value of the bin that maps to the supplied row and column
values.
|
double |
get(int rowIndex,
int columnIndex)
Return the value of the bin that maps to the supplied row and column
indices.
|
int[] |
maxIndex()
Return the indices of the bin with largest value in the form
[rowIndex, columnIndex]. |
int[] |
minIndex()
Return the indices of the bin with smallest value in the form
[rowIndex, columnIndex]. |
XySequence |
row(double rowValue)
Return an immutable view of the values that map to the supplied row value.
|
XySequence |
row(int rowIndex)
Return an immutable view of the values that map to the supplied row index.
|
double |
rowMax()
Return the upper edge of the uppermost row bin.
|
double |
rowMin()
Return the lower edge of the lowermost row bin.
|
List<Double> |
rows()
Return an immutable list view of the row keys (bin centers).
|
double |
rowΔ()
Return the row bin discretization.
|
double get(double rowValue,
double columnValue)
get(int, int) by row
index.rowValue - of bin to retrievecolumnValue - of bin to retrieveIndexOutOfBoundsException - if either value is out of rangedouble get(int rowIndex,
int columnIndex)
get(double, double) by
row value.rowIndex - of bin to retrievecolumnIndex - of bin to retrieveIndexOutOfBoundsException - if either index is out of rangeXySequence row(double rowValue)
row(int) retrieval by index.rowValue - of bin to retrieveXySequence row(int rowIndex)
row(double) retrieval by value.rowIndex - of bin to retrievedouble rowMin()
double rowMax()
double rowΔ()
double columnMin()
double columnMax()
double columnΔ()
IntervalArray collapse()
IntervalArray created by summing the columns of this
table.int[] minIndex()
[rowIndex, columnIndex].int[] maxIndex()
[rowIndex, columnIndex].