R/Neighbour.R

Defines functions Neighbour

Documented in Neighbour

## Copyright 2015 <Jeremy Yee> <jeremyyee@outlook.com.au>
## Nearest Neighbours
################################################################################

Neighbour <- function(query, ref, k, build = "kdtree", cores = 0, checks = 1) {
    if (is.data.frame(query)) query <- as.matrix(query)
    if (is.data.frame(ref)) ref <- as.matrix(ref)
    .Call('rflann_Neighbour', PACKAGE = 'rflann', query, ref, k,
          build, cores, checks)
}

Try the rflann package in your browser

Any scripts or data that you put into this service are public.

rflann documentation built on May 29, 2017, 12:37 p.m.