BiocNeighborParam: The BiocNeighborParam class

Description Details Methods Author(s) See Also

Description

A virtual class for specifying the type of nearest-neighbor search algorithm and associated parameters.

Details

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.

Methods

show(object):

Display the class of a BiocNeighborParam object.

bndistance(object):

Return a string specifying the distance metric to be used for searching, usually "Euclidean" or "Manhattan".

Author(s)

Aaron Lun

See Also

KmknnParam, VptreeParam, AnnoyParam, and HnswParam for constructors.

buildIndex, findKNN and queryKNN for dispatch.


BiocNeighbors documentation built on Dec. 9, 2020, 2:01 a.m.