edu.cmu.minorthird.classify
Interface FeatureIndex

All Known Implementing Classes:
BasicFeatureIndex

public interface FeatureIndex

Author:
Edoardo Airoldi Date: Nov 24, 2003

Method Summary
 void addExample(Example e)
           
 java.util.Iterator<Feature> featureIterator()
           
 double getCounts(Feature f, int i)
          Get counts of feature f in i-th example containing feature f
 Example getExample(Feature f, int i)
          Get i-th example contained in feature f
 java.util.Iterator<Example> getNeighbors(Instance instance)
          Get all examples containing a feature.
 int size(Feature f)
          Number of examples containing the current feature.
 

Method Detail

addExample

void addExample(Example e)

featureIterator

java.util.Iterator<Feature> featureIterator()

size

int size(Feature f)
Number of examples containing the current feature.


getExample

Example getExample(Feature f,
                   int i)
Get i-th example contained in feature f


getCounts

double getCounts(Feature f,
                 int i)
Get counts of feature f in i-th example containing feature f


getNeighbors

java.util.Iterator<Example> getNeighbors(Instance instance)
Get all examples containing a feature.