Learn R Programming

rflann (version 1.3)

RadiusSearch: Radius searching

Description

Radius searching

Usage

RadiusSearch(query, ref, radius, max_neighbour, build = "kdtree", cores = 0, checks = 1)

Arguments

query
Matrix or data frame containing the set of query points where each row represents a point.
ref
Matrix or data frame containing the set of reference points where each row represents a point.
radius
Squared euclidean distance from each query point.
max_neighbour
Maximum number of points to look for within the radius of each query point.
build
String indicating the search structure to be used: "kdtree", "kmeans", "linear"
cores
Number of cpu cores to be used for searching. If 0, then the maximum allowable cores are used.
checks
Number of checks during searching. Higher value gives better search precision but takes longer. See FLANN C++ manual for more details.

Value

List containing:

Examples

Run this code
## Radius searching
query <- matrix(rnorm(10), ncol = 2)
reference <- matrix(rnorm(10), ncol = 2)
RadiusSearch(query, reference, 1, 2, "kdtree", 0, 1)

Run the code above in your browser using DataLab