buildExhaustive {BiocNeighbors}R Documentation

Prepare data for an exhaustive search

Description

Transform data in preparation for an exhaustive (i.e., brute-force) search.

Usage

buildExhaustive(X, transposed = FALSE, distance = c("Euclidean", "Manhattan"))

Arguments

X

A numeric matrix where rows correspond to data points and columns correspond to variables (i.e., dimensions).

transposed

Logical scalar indicating whether X is transposed, i.e., rows are variables and columns are data points.

distance

String specifying the type of distance to use.

Value

An ExhaustiveIndex object containing:

Examples

Y <- matrix(rnorm(100000), ncol=20)
out <- buildExhaustive(Y)
out


[Package BiocNeighbors version 1.8.2 Index]