A virtual class for specifying the type of nearest-neighbor search algorithm and associated parameters.
The BiocNeighborParam class is a virtual base class on which other parameter objects are built. There are currently 4 concrete subclasses:
KmknnParam: exact nearest-neighbor search with the KMKNN algorithm.
VptreeParam: exact nearest-neighbor search with the VP tree algorithm.
AnnoyParam: approximate nearest-neighbor search with the Annoy algorithm.
HnswParam: approximate nearest-neighbor search with the HNSW algorithm.
These objects hold parameters specifying how each algorithm should be run on an arbitrary data set. See the associated documentation pages for more details.
In the following code snippets,
object are BiocNeighborParam objects.
Display the class and arguments of
Return a string specifying the distance metric to be used for searching.
This should be one of
Return the value of slot
i, as used in the constructor for
x[[i]] <- value:
i to the specified
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.