|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.classify.sequential.HyperplaneInstance
public class HyperplaneInstance
Wrap a hyperplane to that it supports the Instance interface.
Constructor Summary | |
---|---|
HyperplaneInstance(Hyperplane hyperplane,
java.lang.String subpopulationId,
java.lang.Object source)
|
Method Summary | |
---|---|
java.util.Iterator<Feature> |
binaryFeatureIterator()
Return an iterator over all binary features. |
java.util.Iterator<Feature> |
featureIterator()
Return an iterator over all features |
java.lang.Object |
getSource()
Get the underlying object used that this instance describes |
java.lang.String |
getSubpopulationId()
Get the subpopulation from which this instance was drawn. |
double |
getWeight()
|
double |
getWeight(Feature f)
Get the weight assigned to a feature in this instance. |
java.util.Iterator<Feature> |
numericFeatureIterator()
Return an iterator over all numeric features. |
int |
numFeatures()
Return the number of all the features |
Viewer |
toGUI()
Create a view of this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HyperplaneInstance(Hyperplane hyperplane, java.lang.String subpopulationId, java.lang.Object source)
Method Detail |
---|
public Viewer toGUI()
Visible
toGUI
in interface Visible
public double getWeight(Feature f)
Instance
getWeight
in interface Instance
public java.util.Iterator<Feature> binaryFeatureIterator()
Instance
binaryFeatureIterator
in interface Instance
public java.util.Iterator<Feature> numericFeatureIterator()
Instance
numericFeatureIterator
in interface Instance
public java.util.Iterator<Feature> featureIterator()
Instance
featureIterator
in interface Instance
public int numFeatures()
Instance
numFeatures
in interface Instance
public double getWeight()
public java.lang.Object getSource()
Instance
getSource
in interface Instance
public java.lang.String getSubpopulationId()
Instance
getSubpopulationId
in interface HasSubpopulationId
getSubpopulationId
in interface Instance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |