NaiveHistogram3D
, OnDemandHistogram3D
public interface Histogram3D
Histogram1D
Modifier and Type | Method | Description |
---|---|---|
void |
clear() |
Sets all counters to zero.
|
int |
getEntry(int index1,
int index2,
int index3) |
Returns the counter value of (index1, index2, index3).
|
int |
getMaxValue(int index) |
Returns the maximum index value for one of the three indexes.
|
int |
getNumUsedEntries() |
Returns the number of used entries (those entries with
a counter value larger than zero).
|
void |
increaseEntry(int index1,
int index2,
int index3) |
Increases the counter value of (index1, index2, index3) by one.
|
void |
setEntry(int index1,
int index2,
int index3,
int newValue) |
Sets the counter value of (index1, index2, index3) to newValue.
|
void clear()
int getEntry(int index1, int index2, int index3)
index1
- first of the three values forming the threedimensional indexindex2
- second of the three values forming the threedimensional indexindex3
- three of the three values forming the threedimensional indexIllegalArgumentException
- if the index formed by the arguments is invalidint getMaxValue(int index)
IllegalArgumentException
- if the index formed by the arguments is invalidint getNumUsedEntries()
void increaseEntry(int index1, int index2, int index3)
setEntry(index1, index2, index3, getEntry(index1, index2, index3) + 1);
However, implementations of this method may take advantage of
implementation details to provide a more efficient approach.index1
- first of the three values forming the threedimensional indexindex2
- second of the three values forming the threedimensional indexindex3
- three of the three values forming the threedimensional indexIllegalArgumentException
- if the index formed by the arguments is invalidvoid setEntry(int index1, int index2, int index3, int newValue)
index1
- first of the three values forming the threedimensional indexindex2
- second of the three values forming the threedimensional indexindex3
- three of the three values forming the threedimensional indexnewValue
- the counter value that is assigned to the argument indexIllegalArgumentException
- if the index formed by the first three arguments is invalid