|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Int2LongFrequencyDistribution
A frequency distribution where events are ints and counts are longs.
| Method Summary | |
|---|---|
void |
clear()
Removes all events. |
boolean |
contains(int key)
Returns true if key exists in this object. |
void |
decrement(int key)
Decrements the frequency of an event key. |
void |
decrement(int key,
long cnt)
Decrements the frequency of a particular event key by cnt. |
long |
get(int key)
Returns the frequency of a particular event key. |
List<PairOfIntLong> |
getFrequencySortedEvents()
Returns events sorted by frequency of occurrence. |
List<PairOfIntLong> |
getFrequencySortedEvents(int n)
Returns top n events sorted by frequency of occurrence. |
int |
getNumberOfEvents()
Returns number of distinct events observed. |
List<PairOfIntLong> |
getSortedEvents()
Returns events in sorted order. |
List<PairOfIntLong> |
getSortedEvents(int n)
Returns top n events in sorted order. |
long |
getSumOfFrequencies()
Returns the sum of frequencies of all observed events. |
void |
increment(int key)
Increments the frequency of an event key. |
void |
increment(int key,
long cnt)
Increments the frequency of an event key by cnt. |
long |
remove(int k)
Removes the count of a particular event key. |
long |
set(int key,
long cnt)
Sets the frequency of a particular event key to cnt. |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
void increment(int key)
key.
void increment(int key,
long cnt)
key by cnt.
void decrement(int key)
key.
void decrement(int key,
long cnt)
key by cnt.
boolean contains(int key)
long get(int key)
long set(int key,
long cnt)
cnt.
long remove(int k)
key.
void clear()
List<PairOfIntLong> getFrequencySortedEvents()
List<PairOfIntLong> getFrequencySortedEvents(int n)
List<PairOfIntLong> getSortedEvents()
List<PairOfIntLong> getSortedEvents(int n)
int getNumberOfEvents()
long getSumOfFrequencies()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||