|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.jung.algorithms.importance.Ranking
Abstract data container for ranking objects. Stores common data relevant to both node and edge rankings, namely, the original position of the instance in the list and the actual ranking score.
Field Summary | |
int |
originalPos
The original (0-indexed) position of the instance being ranked |
double |
rankScore
The actual rank score (normally between 0 and 1) |
Constructor Summary | |
Ranking(int originalPos,
double rankScore)
Constructor which allows values to be set on construction |
Method Summary | |
int |
compareTo(java.lang.Object o)
Compares two ranking based on the rank score. |
java.lang.String |
toString()
Returns the rank score as a string. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int originalPos
public double rankScore
Constructor Detail |
public Ranking(int originalPos, double rankScore)
originalPos
- The original (0-indexed) position of the instance being rankedrankScore
- The actual rank score (normally between 0 and 1)Method Detail |
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- The other ranking
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |