See details of rnnd_build and rnnd_query.
method_nnd(x, y, k, distance, deduplication, verbose, n_threads, control, seed)
deduplication or reference data,
query data,
number of neighbours to return,
type of distance to calculate,
whether the deduplication is applied,
if TRUE, log messages to the console,
maximum number of threads to use,
controls for the NN descent algorithm.
Maciej Beręsewicz