Package cc.mallet.types
Class Multinomial.LaplaceEstimator
- java.lang.Object
-
- cc.mallet.types.Multinomial.Estimator
-
- cc.mallet.types.Multinomial.MEstimator
-
- cc.mallet.types.Multinomial.LaplaceEstimator
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
- Enclosing class:
- Multinomial
public static class Multinomial.LaplaceEstimator extends Multinomial.MEstimator
An MEstimator with m set to 1. The probability estimates in the Multinomial are generated by adding 1 to each count and then dividing each 1-biased count by the sum of all 1-biased counts.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LaplaceEstimator()
LaplaceEstimator(int size)
LaplaceEstimator(Alphabet dictionary)
-
Method Summary
-
Methods inherited from class cc.mallet.types.Multinomial.MEstimator
estimate
-
Methods inherited from class cc.mallet.types.Multinomial.Estimator
clone, ensureCapacity, getCount, increment, increment, increment, increment, increment, increment, print, reset, setAlphabet, size
-
-
-
-
Constructor Detail
-
LaplaceEstimator
public LaplaceEstimator()
-
LaplaceEstimator
public LaplaceEstimator(int size)
-
LaplaceEstimator
public LaplaceEstimator(Alphabet dictionary)
-
-