public final class IntervalData extends Object
IntervalArray,
IntervalTable,
IntervalVolume| Constructor and Description |
|---|
IntervalData() |
| Modifier and Type | Method and Description |
|---|---|
static int |
indexOf(double min,
double delta,
double value,
int size)
Compute an index from a minimum value, a value and an interval.
|
static double[] |
keys(double min,
double max,
double Δ)
|
public static double[] keys(double min,
double max,
double Δ)
IntervalArray,
IntervalTable or IntervalVolume. These classes call this
method directly when initializing their backing arrays. It is exposed for
convenience as there are circumstances where a reference to the row or
column keys is helpful to have when working with the builders for these
classes. Internally, this method calls
Data.buildCleanSequence(double, double, double, boolean, int) with
a precision value of 4 decimal places. This may change in the future.
Example: keys(5.0, 8.0, 1.0) returns [5.5, 6.5, 7.5]
min - lower edge of lowermost binmax - upper edge of uppermost binΔ - bin widthpublic static int indexOf(double min,
double delta,
double value,
int size)
min - valuedelta - interval (i.e. bin width)value - for which to compute indexsize - of array or collection for which index is to be usedIndexOutOfBoundsException - if the index of value falls
outside the allowed index range of [0, size-1].IllegalArgumentException - if size is negative