cc.mallet.classify.constraints.ge
Class MaxEntFLGEConstraints.MaxEntFLGEConstraint

java.lang.Object
  extended by cc.mallet.classify.constraints.ge.MaxEntFLGEConstraints.MaxEntFLGEConstraint
Direct Known Subclasses:
MaxEntKLFLGEConstraints.MaxEntKLFLGEConstraint, MaxEntL2FLGEConstraints.MaxEntL2FLGEConstraint
Enclosing class:
MaxEntFLGEConstraints

protected abstract class MaxEntFLGEConstraints.MaxEntFLGEConstraint
extends java.lang.Object


Field Summary
protected  double count
           
protected  double[] expectation
           
protected  double[] target
           
protected  double weight
           
 
Constructor Summary
MaxEntFLGEConstraints.MaxEntFLGEConstraint(double[] target, double weight)
           
 
Method Summary
 double getCount()
           
 double[] getExpectation()
           
 double[] getTarget()
           
abstract  double getValue(int li)
           
 double getWeight()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target

protected double[] target

expectation

protected double[] expectation

count

protected double count

weight

protected double weight
Constructor Detail

MaxEntFLGEConstraints.MaxEntFLGEConstraint

public MaxEntFLGEConstraints.MaxEntFLGEConstraint(double[] target,
                                                  double weight)
Method Detail

getTarget

public double[] getTarget()

getExpectation

public double[] getExpectation()

getCount

public double getCount()

getWeight

public double getWeight()

getValue

public abstract double getValue(int li)