|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.AbstractInstance edu.cmu.minorthird.classify.MutableInstance
public class MutableInstance
A single instance for a learner.
Field Summary |
---|
Fields inherited from class edu.cmu.minorthird.classify.AbstractInstance |
---|
source, subpopulationId |
Constructor Summary | |
---|---|
MutableInstance()
|
|
MutableInstance(java.lang.Object source)
|
|
MutableInstance(java.lang.Object source,
java.lang.String subpopulationId)
|
Method Summary | |
---|---|
void |
addBinary(Feature feature)
Add a binary feature. |
void |
addNumeric(Feature feature,
double value)
Add a numeric feature. |
java.util.Iterator<Feature> |
binaryFeatureIterator()
Return an iterator over all binary features |
java.util.Iterator<Feature> |
featureIterator()
Return an iterator over all features |
double |
getWeight(Feature feature)
Get the weight assigned to a feature in this instance. |
static void |
main(java.lang.String[] args)
|
java.util.Iterator<Feature> |
numericFeatureIterator()
Return an iterator over all numeric features |
int |
numFeatures()
Return the number of all the features |
Methods inherited from class edu.cmu.minorthird.classify.AbstractInstance |
---|
getSource, getSubpopulationId, toGUI, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MutableInstance(java.lang.Object source, java.lang.String subpopulationId)
public MutableInstance(java.lang.Object source)
public MutableInstance()
Method Detail |
---|
public void addNumeric(Feature feature, double value)
public void addBinary(Feature feature)
public double getWeight(Feature feature)
public java.util.Iterator<Feature> binaryFeatureIterator()
public java.util.Iterator<Feature> numericFeatureIterator()
public java.util.Iterator<Feature> featureIterator()
public int numFeatures()
Instance
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |