public class DistinctVectorValues
extends java.lang.Object
| Constructor and Description |
|---|
DistinctVectorValues(java.nio.FloatBuffer buffer,
int startPosition,
int endPosition)
Analyze the specified FloatBuffer range using exact vector comparisons
(without distinguishing 0 from -0) and instantiate the results.
|
| Modifier and Type | Method and Description |
|---|---|
int |
countDistinct()
Count the number of distinct vectors in the original buffer range.
|
int |
findVvid(int vectorIndex)
Find the ID of the indexed vector in the original buffer range.
|
public DistinctVectorValues(java.nio.FloatBuffer buffer,
int startPosition,
int endPosition)
buffer - the buffer to analyze (not null, unaffected)startPosition - the buffer position at which the vectors start
(≥0, ≤endPosition, typically 0)endPosition - the buffer position at which the vectors end
(≥startPosition, ≤capacity)public int countDistinct()
public int findVvid(int vectorIndex)
vectorIndex - the index of the vector in the original buffer (≥0)
which is typically a vertex ID