View source: R/buildExhaustive.R
buildExhaustive | R Documentation |
Transform data in preparation for an exhaustive (i.e., brute-force) search.
buildExhaustive(
X,
transposed = FALSE,
distance = c("Euclidean", "Manhattan", "Cosine")
)
X |
A numeric matrix where rows correspond to data points and columns correspond to variables (i.e., dimensions). |
transposed |
Logical scalar indicating whether |
distance |
String specifying the type of distance to use. |
This algorithm is largely provided as a baseline for comparing against the other algorithms. On rare occasions, it may actually be useful in, e.g., very high-dimensional data where the indexing step of other algorithms adds computational overhead for no benefit.
An ExhaustiveIndex object containing indexed data.
Allison Vuong
ExhaustiveIndex, for details on the output class.
findExhaustive
and queryExhaustive
, for dependent functions.
Y <- matrix(rnorm(100000), ncol=20)
out <- buildExhaustive(Y)
out
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.