com.pawjaw.classification.crf.lmcbt.points
Class SparsePoint

java.lang.Object
  extended by com.pawjaw.classification.crf.lmcbt.points.SparsePoint
All Implemented Interfaces:
Point

public class SparsePoint
extends java.lang.Object
implements Point


Constructor Summary
SparsePoint()
           
 
Method Summary
 boolean hasTrueFeature(Configuration c, int feature_index)
           
 int nextTrueFeature(Configuration c, int offset)
           
 void setFeatures(boolean[] bs)
           
 void setFeatures(int[] positive_features)
           
 int trueFeatureCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SparsePoint

public SparsePoint()
Method Detail

setFeatures

public void setFeatures(boolean[] bs)
Specified by:
setFeatures in interface Point

setFeatures

public void setFeatures(int[] positive_features)

hasTrueFeature

public boolean hasTrueFeature(Configuration c,
                              int feature_index)
Specified by:
hasTrueFeature in interface Point

nextTrueFeature

public int nextTrueFeature(Configuration c,
                           int offset)
Specified by:
nextTrueFeature in interface Point

trueFeatureCount

public int trueFeatureCount()
Specified by:
trueFeatureCount in interface Point