A class to hold indexing structures for the HNSW algorithm for approximate nearest neighbor identification.
1 2 3 4 5 6 7 8
A numeric matrix with data points in columns and dimensions in rows.
A string specifying the path to the index file.
Integer scalar specifying the size of the dynamic list at run time.
A character vector of sample names or
A string specifying the distance metric to use.
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
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.