cc.mallet.fst.semi_supervised.constraints
Class OneLabelGEConstraints.OneLabelGEConstraint

java.lang.Object
  extended by cc.mallet.fst.semi_supervised.constraints.OneLabelGEConstraints.OneLabelGEConstraint
Direct Known Subclasses:
OneLabelKLGEConstraints.OneLabelGEKLConstraint, OneLabelL2GEConstraints.OneLabelGEL2Constraint
Enclosing class:
OneLabelGEConstraints

protected abstract class OneLabelGEConstraints.OneLabelGEConstraint
extends java.lang.Object


Field Summary
protected  double count
           
protected  double[] expectation
           
protected  double[] target
           
protected  double weight
           
 
Constructor Summary
OneLabelGEConstraints.OneLabelGEConstraint(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

OneLabelGEConstraints.OneLabelGEConstraint

public OneLabelGEConstraints.OneLabelGEConstraint(double[] target,
                                                  double weight)
Method Detail

getCount

public double getCount()

getTarget

public double[] getTarget()

getExpectation

public double[] getExpectation()

getWeight

public double getWeight()

getValue

public abstract double getValue(int li)