Package io.github.jbellis.jvector.graph
Interface NodeSimilarity.ScoreFunction
- All Known Subinterfaces:
NodeSimilarity.ApproximateScoreFunction,NodeSimilarity.ExactScoreFunction
- Enclosing interface:
NodeSimilarity
public static interface NodeSimilarity.ScoreFunction
Provides an API for encapsulating similarity to another node or vector. Used both for
building the graph (as part of NodeSimilarity) or for searching it (used standalone,
with a reference to the query vector).
ExactScoreFunction and ApproximateScoreFunction are provided for convenience so they can be defined as a simple lambda.
-
Method Summary
-
Method Details
-
isExact
boolean isExact() -
similarityTo
float similarityTo(int node2)
-