|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.stats.AbstractCounter<E>
public abstract class AbstractCounter<E>
Default implementations of all the convenience methods provided by
Counter
.
Constructor Summary | |
---|---|
AbstractCounter()
|
Method Summary | |
---|---|
double |
decrementCount(E key)
Decrements the count for this key by 1.0. |
double |
decrementCount(E key,
double amount)
Decrements the count for this key by the given value. |
double |
incrementCount(E key)
Increments the count for this key by 1.0. |
double |
incrementCount(E key,
double amount)
Increments the count for this key by the given value. |
double |
logIncrementCount(E key,
double amount)
log space increments the count for this key by the given value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.stanford.nlp.stats.Counter |
---|
clear, containsKey, defaultReturnValue, defaultReturnValue, entrySet, getCount, getFactory, keySet, remove, setCount, size, totalCount, values |
Constructor Detail |
---|
public AbstractCounter()
Method Detail |
---|
public double logIncrementCount(E key, double amount)
Counter
logIncrementCount
in interface Counter<E>
key
- The key to incrementamount
- The amount to increment it by, in log space
public double incrementCount(E key, double amount)
Counter
incrementCount
in interface Counter<E>
key
- The key to incrementamount
- The amount to increment it by
public double incrementCount(E key)
Counter
incrementCount
in interface Counter<E>
key
- The key to increment by 1.0
public double decrementCount(E key, double amount)
Counter
decrementCount
in interface Counter<E>
key
- The key to decrementamount
- The amount to decrement it by
public double decrementCount(E key)
Counter
decrementCount
in interface Counter<E>
key
- The key to decrement by 1.0
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |