cc.mallet.fst.semi_supervised.constraints
Class TwoLabelGEConstraints.TwoLabelGEConstraint

java.lang.Object
  extended by cc.mallet.fst.semi_supervised.constraints.TwoLabelGEConstraints.TwoLabelGEConstraint
Direct Known Subclasses:
TwoLabelKLGEConstraints.TwoLabelKLGEConstraint, TwoLabelL2GEConstraints.TwoLabelL2GEConstraint
Enclosing class:
TwoLabelGEConstraints

protected abstract class TwoLabelGEConstraints.TwoLabelGEConstraint
extends java.lang.Object


Field Summary
protected  double count
           
protected  double[][] expectation
           
protected  double[][] target
           
protected  double weight
           
 
Constructor Summary
TwoLabelGEConstraints.TwoLabelGEConstraint(double[][] target, double weight)
           
 
Method Summary
abstract  double getValue(int liPrev, int liCurr)
           
 
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

TwoLabelGEConstraints.TwoLabelGEConstraint

public TwoLabelGEConstraints.TwoLabelGEConstraint(double[][] target,
                                                  double weight)
Method Detail

getValue

public abstract double getValue(int liPrev,
                                int liCurr)