|
|||||||||
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.transform.MaskedInstance
public class MaskedInstance
Field Summary |
---|
Fields inherited from class edu.cmu.minorthird.classify.AbstractInstance |
---|
source, subpopulationId |
Constructor Summary | |
---|---|
MaskedInstance(Instance instance,
java.util.Set<Feature> availableFeatures)
|
|
MaskedInstance(Instance instance,
java.util.SortedMap<Feature,?> availableFeatures)
|
Method Summary | |
---|---|
java.util.Iterator<Feature> |
binaryFeatureIterator()
Return an iterator over binary features |
java.util.Iterator<Feature> |
featureIterator()
Return an iterator over all available features |
java.lang.Object |
getSource()
Return the underlying object being represented. |
java.lang.String |
getSubpopulationId()
Return the subpopulation from which the source was drawn. |
double |
getWeight(Feature f)
Get the weight assigned to a feature in this instance. |
java.util.Iterator<Feature> |
numericFeatureIterator()
Return an iterator over numeric features |
int |
numFeatures()
Return the number of all the features |
Viewer |
toGUI()
Retrieve Viewer for the instance |
java.lang.String |
toString()
Debugging view of an instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MaskedInstance(Instance instance, java.util.Set<Feature> availableFeatures)
public MaskedInstance(Instance instance, java.util.SortedMap<Feature,?> availableFeatures)
Method Detail |
---|
public final java.lang.Object getSource()
AbstractInstance
getSource
in interface Instance
getSource
in class AbstractInstance
public final java.lang.String getSubpopulationId()
AbstractInstance
getSubpopulationId
in interface HasSubpopulationId
getSubpopulationId
in interface Instance
getSubpopulationId
in class AbstractInstance
public Viewer toGUI()
AbstractInstance
toGUI
in interface Visible
toGUI
in class AbstractInstance
public double getWeight(Feature f)
Instance
public java.util.Iterator<Feature> featureIterator()
public final java.util.Iterator<Feature> numericFeatureIterator()
public final java.util.Iterator<Feature> binaryFeatureIterator()
public final int numFeatures()
Instance
public java.lang.String toString()
AbstractInstance
toString
in class AbstractInstance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |