public interface NnResults extends Serializable
0
to getQueryCount()
-1
. For every query a nearest neighbor index
(getMostSimilarNeighbor(int)
) with a dissimilarity value (getMostSimilarDissimilarity(int)
) is
stored. Interpretation of the query and target indices is implementation dependent. Note that some search
implementation might accept dissimilarity threshold values which might result in no hits for certain queries. Such
queries are not represented by an instance of this interface and the index mapping must be provided outside.
For implementations representing self overlap additionally might ignore self reference as the nearest neighbor.Modifier and Type | Method and Description |
---|---|
double |
getMaxDissimilarity()
Upper bound of dissimilarity values.
|
int |
getMaxNeighborIndex()
Upper bound of neighbor index values.
|
double |
getMinDissimilarity()
Lower bound of dissimilarity values.
|
int |
getMinNeighborIndex()
Lower bound of neighbor index values.
|
double |
getMostSimilarDissimilarity(int queryIndex)
Dissimilarity of the most similar neighbor.
|
int |
getMostSimilarNeighbor(int queryIndex)
Index of most similar neighbor.
|
int |
getQueryCount()
Number of queries stored.
|
double getMaxDissimilarity()
int getMaxNeighborIndex()
double getMinDissimilarity()
int getMinNeighborIndex()
double getMostSimilarDissimilarity(int queryIndex)
queryIndex
- Index of queryint getMostSimilarNeighbor(int queryIndex)
queryIndex
- Index of queryint getQueryCount()