|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectQueryProcessor.ResultImage
QueryProcessor.SF.ScoredResultImage
public class ScoredResultImage
Class representing the result image of a query with a scoring function (includes a score).
| Field Summary | |
|---|---|
protected double |
d
The distance of this image to the query computed using the scoring function |
| Fields inherited from class QueryProcessor.ResultImage |
|---|
id |
| Constructor Summary | |
|---|---|
ScoredResultImage(ImageID id,
double d)
Basic constructor. |
|
| Method Summary | |
|---|---|
int |
compareTo(ScoredResultImage q)
Compares this object with the specified object for order (increasing distance). |
double |
getDistance()
Returns the distance value of this reuslt to the query image. |
java.lang.String |
toString(int pos,
java.lang.String name)
Returns a string representation of this result image. |
| Methods inherited from class QueryProcessor.ResultImage |
|---|
equals, equals, getID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double d
| Constructor Detail |
|---|
public ScoredResultImage(ImageID id,
double d)
id - ID of the result image.d - Distance value.| Method Detail |
|---|
public double getDistance()
public java.lang.String toString(int pos,
java.lang.String name)
toString in class ResultImagepos - Position of this image in the result.name - Image name.
public int compareTo(ScoredResultImage q)
compareTo in interface java.lang.Comparable<ScoredResultImage>q - ScoredResultImage to be compared.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||