|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.util.HighestTermScores
public class HighestTermScores
Container that can be used to gather X number of terms with the highest scores.
Field Summary | |
---|---|
private int |
limit
|
private float |
minScore
|
private java.lang.String |
minTerm
|
private java.util.Map<java.lang.String,java.lang.Float> |
vals
|
Constructor Summary | |
---|---|
HighestTermScores(int size)
Creates a HighestTermScores of specified size. |
Method Summary | |
---|---|
boolean |
add(java.lang.String term,
float score)
Adds the specified term and score to this HighestTermScores. |
int |
size()
Gets the true size of this HighestTermScores. |
java.lang.Iterable<TermScore> |
termScores()
Gets an iterable over the term scores in this HighestTermScores. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Map<java.lang.String,java.lang.Float> vals
private int limit
private float minScore
private java.lang.String minTerm
Constructor Detail |
---|
public HighestTermScores(int size)
size
- the size of the HighestTermScores collection.Method Detail |
---|
public int size()
public boolean add(java.lang.String term, float score)
term
- the term to addscore
- the score of the term to add
public java.lang.Iterable<TermScore> termScores()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |