Package cc.mallet.types
Class Multinomial.MEstimator
- java.lang.Object
-
- cc.mallet.types.Multinomial.Estimator
-
- cc.mallet.types.Multinomial.MEstimator
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
- Direct Known Subclasses:
Multinomial.LaplaceEstimator
,Multinomial.MLEstimator
- Enclosing class:
- Multinomial
public static class Multinomial.MEstimator extends Multinomial.Estimator
An Estimator in which probability estimates in a Multinomial are generated by adding a constant m (specified at construction time) to each count before dividing by the total of the m-biased counts.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MEstimator(double m)
MEstimator(int size, double m)
MEstimator(Alphabet dictionary, double m)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Multinomial
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
-
MEstimator
public MEstimator(Alphabet dictionary, double m)
-
MEstimator
public MEstimator(int size, double m)
-
MEstimator
public MEstimator(double m)
-
-
Method Detail
-
estimate
public Multinomial estimate()
- Specified by:
estimate
in classMultinomial.Estimator
-
-