|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLBJ2.classify.Classifier
LBJ2.classify.ValueComparer
public class ValueComparer
This classifier applies another classifier to the example object and returns a Boolean feature (with value "true" or "false") representing the equality of the argument classifier's feature value to a given value.
MultiValueComparer,
Serialized Form| Field Summary | |
|---|---|
protected Classifier |
labeler
The classifier whose value will be compared. |
protected java.lang.String |
value
The value to compare with. |
| Fields inherited from class LBJ2.classify.Classifier |
|---|
containingPackage, name |
| Constructor Summary | |
|---|---|
ValueComparer(Classifier c,
java.lang.String v)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.String[] |
allowableValues()
Returns the array of allowable values that a feature returned by this classifier may take. |
FeatureVector |
classify(java.lang.Object o)
Returns a Boolean feature (with value "true" or "false") representing the equality of the output of labeler applied to the argument
object and value. |
java.lang.String |
getInputType()
Returns a string describing the input type of this classifier. |
void |
setLabeler(Classifier l)
Sets the value of labeler. |
java.lang.String |
toString()
The String representation of a ValueComparer
has the form "ValueComparer(child),
where child is the String representation of the
classifier whose value is being compared. |
| Methods inherited from class LBJ2.classify.Classifier |
|---|
binaryRead, binaryRead, binaryRead, binaryRead, binaryWrite, binaryWrite, classify, clone, discreteValue, discreteValueArray, getCompositeChildren, getOutputType, realValue, realValueArray, test, valueIndexOf |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Classifier labeler
protected java.lang.String value
| Constructor Detail |
|---|
public ValueComparer(Classifier c,
java.lang.String v)
c - The classifier whose value will be compared.v - The value to compare with.| Method Detail |
|---|
public void setLabeler(Classifier l)
labeler.
public FeatureVector classify(java.lang.Object o)
labeler applied to the argument
object and value.
classify in class Classifiero - The object to make decisions about.
public java.lang.String getInputType()
getInputType in class Classifierpublic java.lang.String[] allowableValues()
allowableValues in class ClassifierDiscreteFeature.BooleanValuesDiscreteFeature.BooleanValuespublic java.lang.String toString()
String representation of a ValueComparer
has the form "ValueComparer(child),
where child is the String representation of the
classifier whose value is being compared.
toString in class Classifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||