|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.telin.mymedia.uima.annotator.Statistics
public class Statistics
Constructor Summary | |
---|---|
Statistics()
|
Method Summary | |
---|---|
static float |
Entropy(float[] probabilities)
calculate entropy given probabilities. |
static float |
JSDivergence(SparseVector<java.lang.Float> p1,
SparseVector<java.lang.Float> p2)
calculate JSDivergence given two sparsevectors. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Statistics()
Method Detail |
---|
public static float Entropy(float[] probabilities)
probabilities
- (0.0 - 1.0)
public static float JSDivergence(SparseVector<java.lang.Float> p1, SparseVector<java.lang.Float> p2)
p1
- vector onep2
- vector two
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |