public final class KnnResultsBuilder extends Object
KnnResults
instances.Constructor and Description |
---|
KnnResultsBuilder()
Construct.
|
Modifier and Type | Method and Description |
---|---|
void |
addSimilarities(int queryIndex,
List<SimilarityResult> newSimilarities)
Add dissimilarities.
|
void |
addSingleSimilarity(int queryIndex,
SimilarityResult mostSimilar)
Add a single similarity.
|
KnnResults |
build()
Build.
|
public void addSimilarities(int queryIndex, List<SimilarityResult> newSimilarities)
queryIndex
- Query indexnewSimilarities
- Similarity results for the querypublic void addSingleSimilarity(int queryIndex, SimilarityResult mostSimilar)
queryIndex
- Query indexmostSimilar
- Similarity result to addpublic KnnResults build()