BiocNeighborParam {BiocNeighbors} | R Documentation

## The BiocNeighborParam class

### 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 2 concrete subclasses:

  `KmknnParam`: exact nearest-neighbor search with the KMKNN algorithm.

  `AnnoyParam`: approximate nearest-neighbor search with the Annoy 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`.

### Author(s)

Aaron Lun

### See Also

`KmknnParam` and `AnnoyParam` for constructors.

`buildNNIndex`, `findKNN` and `queryKNN` for dispatch.

[Package BiocNeighbors version 1.0.0 Index]