Description Usage Arguments Details Value Author(s) See Also Examples
A class to hold indexing structures for the HNSW algorithm for approximate nearest neighbor identification.
1 2 3 4 5 6 7 8 | HnswIndex(data, path, ef.search=10, NAMES=NULL, distance="Euclidean")
HnswIndex_path(x)
HnswIndex_ef_search(x)
## S4 method for signature 'HnswIndex'
show(object)
|
data |
A numeric matrix with data points in columns and dimensions in rows. |
path |
A string specifying the path to the index file. |
ef.search |
Integer scalar specifying the size of the dynamic list at run time. |
NAMES |
A character vector of sample names or |
distance |
A string specifying the distance metric to use. |
x, object |
A HnswIndex object. |
The HnswIndex class holds the indexing structure required to run the HNSW algorithm.
Users should never need to call the constructor explicitly, but should generate instances of HnswIndex classes with buildHnsw
.
The HnswIndex
constructor will return an instance of the HnswIndex class.
HnswIndex_path
will return the path to the index file.
HnswIndex_ef_search
will return the size of the dynamic list.
Aaron Lun
1 2 | example(buildHnsw)
str(HnswIndex_path(out))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.