public interface IntervalVolume
To create an instance of an IntervalVolume, use a IntervalVolume.Builder.
Internally, an IntervalVolume is backed by a double[][][]
where 'row' maps to the 1st dimension, 'column' the 2nd dimension, and
'level' the 3rd.
Note that interval volumes 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,
IntervalTable| Modifier and Type | Interface and Description |
|---|---|
static class |
IntervalVolume.Builder
A builder of immutable
IntervalVolumes. |
static interface |
IntervalVolume.Loader
A supplier of values with which to fill a
IntervalVolume. |
| Modifier and Type | Method and Description |
|---|---|
IntervalTable |
collapse()
Return a new
IntervalTable created by summing the levels of this
volume. |
XySequence |
column(double rowValue,
double columnValue)
Return an immutable view of the values that map to the supplied row and
column values.
|
XySequence |
column(int rowIndex,
int columnIndex)
Return an immutable view of the values that map to the supplied row and
column values.
|
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,
double levelValue)
Return the value of the bin that maps to the supplied row, column, and
level values.
|
double |
get(int rowIndex,
int columnIndex,
int levelIndex)
Return the value of the bin that maps to the supplied row, column, and
level indices.
|
double |
levelMax()
Return the upper edge of the uppermost level bin.
|
double |
levelMin()
Return the lower edge of the lowermost level bin.
|
List<Double> |
levels()
Return an immutable list view of the level keys (bin centers).
|
double |
levelΔ()
Return the level bin discretization.
|
int[] |
maxIndex()
Return the indices of the bin with largest value in the form
[rowIndex, columnIndex, levelIndex]. |
int[] |
minIndex()
Return the indices of the bin with smallest value in the form
[rowIndex, columnIndex, levelIndex]. |
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,
double levelValue)
get(int, int, int)
by row index.rowValue - of bin to retrievecolumnValue - of bin to retrievelevelValue - of bin to retrieveIndexOutOfBoundsException - if any value is out of rangedouble get(int rowIndex,
int columnIndex,
int levelIndex)
get(double, double, double) by row value.rowIndex - of bin to retrievecolumnIndex - of bin to retrievelevelIndex - of bin to retrieveIndexOutOfBoundsException - if any index is out of rangeXySequence column(double rowValue, double columnValue)
column(int, int) retrieval by
index.rowValue - of bin to retrievecolumnValue - of bin to retrieveXySequence column(int rowIndex, int columnIndex)
column(double, double)
retrieval by index.rowIndex - of bin to retrievecolumnIndex - of bin to retrievedouble rowMin()
double rowMax()
double rowΔ()
double columnMin()
double columnMax()
double columnΔ()
double levelMin()
double levelMax()
double levelΔ()
IntervalTable collapse()
IntervalTable created by summing the levels of this
volume.int[] minIndex()
[rowIndex, columnIndex, levelIndex].int[] maxIndex()
[rowIndex, columnIndex, levelIndex].