Package io.github.jbellis.jvector.graph
Interface NodeSimilarity
public interface NodeSimilarity
Encapsulates comparing node distances.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfacestatic interfaceProvides an API for encapsulating similarity to another node or vector. -
Method Summary
Modifier and TypeMethodDescriptiondefault floatscore(int node1, int node2) for one-off comparisons between nodesscoreProvider(int node1) For when we're going to compare node1 with multiple other nodes.
-
Method Details
-
score
default float score(int node1, int node2) for one-off comparisons between nodes -
scoreProvider
For when we're going to compare node1 with multiple other nodes. This allows us to skip loading node1's vector (potentially from disk) redundantly for each comparison.
-