Constructor and Description |
---|
FirstOrderVariable(Learner c,
Object e)
Initializing constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
This method returns a shallow clone.
|
boolean |
equals(Object o)
Two
FirstOrderVariable s are equivalent when their classifiers are equivalent and
they store the same example object. |
Learner |
getClassifier()
Retrieves the classifier.
|
Object |
getExample()
Retrieves the example object.
|
double |
getScore()
Retrieves the score of the current value of this variable.
|
ScoreSet |
getScores()
Retrieves all the scores for the values this variable may take.
|
String |
getValue()
Retrieves the value this variable currently takes.
|
int |
hashCode()
The hash code of a
FirstOrderVariable is the hash code of the string
representation of the classifier plus the system's hash code for the example object. |
void |
setExample(Object e)
Sets the example object.
|
void |
setValue(String v)
Sets the value of this variable.
|
String |
toString()
Returns a string representation of this variable.
|
public Learner getClassifier()
public Object getExample()
public String getValue()
public void setValue(String v)
v
- The new value of this variable.public void setExample(Object e)
e
- The new example object.public double getScore()
public ScoreSet getScores()
public String toString()
public int hashCode()
FirstOrderVariable
is the hash code of the string
representation of the classifier plus the system's hash code for the example object.public boolean equals(Object o)
FirstOrderVariable
s are equivalent when their classifiers are equivalent and
they store the same example object.Copyright © 2016. All rights reserved.