|
JIU 0.14.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Histogram1D
An interface for a one-dimensional histogram.
Histogram3D
Method Summary | |
---|---|
void |
clear()
Sets all counters to zero. |
int |
getEntry(int index)
Returns the counter value for the given index. |
int |
getMaxValue()
Returns the maximum allowed index. |
int |
getNumUsedEntries()
Returns the number of used entries (those entries with a counter value larger than zero). |
void |
increaseEntry(int index)
Increases the counter value of the given index by one. |
void |
setEntry(int index,
int newValue)
Sets one counter to a new value. |
Method Detail |
---|
void clear()
int getEntry(int index)
index
- the zero-based index of the desired counter value
IllegalArgumentException
- if the argument is not a valid indexint getMaxValue()
int getNumUsedEntries()
void increaseEntry(int index)
setEntry(index, getEntry(index) + 1);
index
- index into the histogram
IllegalArgumentException
- if the argument index is invalidvoid setEntry(int index, int newValue)
index
- index of the counter to be changednewValue
- new value for that counter
IllegalArgumentException
- if the index is invalid
|
JIU 0.14.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |