|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Long2LongFrequencyDistribution
A frequency distribution where events are longs 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,
int cnt)
Decrements the frequency of an event key by cnt. |
int |
get(int key)
Returns the frequency of a particular event key. |
List<PairOfLongs> |
getFrequencySortedEvents()
Returns events sorted by frequency of occurrence. |
List<PairOfLongs> |
getFrequencySortedEvents(int n)
Returns top n events sorted by frequency of occurrence. |
int |
getNumberOfEvents()
Returns number of distinct events observed. |
List<PairOfLongs> |
getSortedEvents()
Returns events in sorted order. |
List<PairOfLongs> |
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,
int cnt)
Increments the frequency of an event key by cnt. |
int |
remove(int key)
Removes the count of a particular event key. |
int |
set(int key,
int 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,
int cnt)
key by cnt.
void decrement(int key)
key.
void decrement(int key,
int cnt)
key by cnt.
boolean contains(int key)
int get(int key)
int set(int key,
int cnt)
key to cnt.
int remove(int key)
key.
void clear()
List<PairOfLongs> getFrequencySortedEvents()
List<PairOfLongs> getFrequencySortedEvents(int n)
List<PairOfLongs> getSortedEvents()
List<PairOfLongs> getSortedEvents(int n)
int getNumberOfEvents()
long getSumOfFrequencies()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||