|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLBJ2.classify.Score
public class Score
A score is a number produced by a learner that indicates the degree to
which a particular discrete classification is appropriate for a given
object. The scores for all possible discrete classifications given an
object need not be positive or sum to one. A Score object
simply contains a score and the associated discrete classification.
| Field Summary | |
|---|---|
double |
score
The score. |
java.lang.String |
value
The discrete classification associated with this score. |
| Constructor Summary | |
|---|---|
Score(java.lang.String v,
double s)
Initializes both member variables. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Produces a deep copy of this object. |
int |
compareTo(java.lang.Object o)
This method is implemented so that a collection of Scores
will be sorted first by value and then by score. |
java.lang.String |
toString()
The string representation of a Score is the value followed
by the score separated by a colon. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String value
public double score
| Constructor Detail |
|---|
public Score(java.lang.String v,
double s)
v - The discrete classification.s - The score.| Method Detail |
|---|
public int compareTo(java.lang.Object o)
Scores
will be sorted first by value and then by score.
compareTo in interface java.lang.Comparableo - The object to compare against.
public java.lang.String toString()
Score is the value followed
by the score separated by a colon.
toString in class java.lang.ObjectScore.public java.lang.Object clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||