|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbr.usp.ime.klava.segmentit.util.Statistics<T>
T - the type of the elements in the collectionpublic class Statistics<T>
Holds a collection of T to calculate statistical data.
| Constructor Summary | |
|---|---|
Statistics()
Constructs an empty collection. |
|
| Method Summary | |
|---|---|
void |
addSample(T sample)
Adds sample to the current collection. |
T |
mode()
Returns the mode of the current collection. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Statistics()
| Method Detail |
|---|
public void addSample(T sample)
sample to the current collection.
sample - the sample to be addedpublic T mode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||