Stream exact radius-search results into destination big.matrix objects
Source: R/knn_interface.R
radius_stream_bigmatrix.RdStream exact radius-search results into destination big.matrix objects
Usage
radius_stream_bigmatrix(
x,
query = NULL,
xpIndex,
xpDistance = NULL,
xpOffset,
radius,
metric = "euclidean",
block_size = knn_default_block_size(),
plan = NULL,
exclude_self = is.null(query),
sort = TRUE
)Arguments
- x
A
bigmemory::big.matrix, an external pointer referencing abig.matrix, or a prepared reference returned byknn_prepare_bigmatrix().- query
Optional query source. Supply
NULLfor self-search, anotherbig.matrixor external pointer for streamed queries, or a dense numeric matrix.- xpIndex
A writable single-column
bigmemory::big.matrixor external pointer that receives flattened 1-based neighbour indices.- xpDistance
Optional writable single-column
bigmemory::big.matrixor external pointer that receives flattened neighbour distances.- xpOffset
A writable single-column
bigmemory::big.matrixor external pointer that receives 1-based offsets into the flattened match vectors.- radius
Distance threshold for including a neighbour.
- metric
Distance metric. Supported values are
"euclidean","sqeuclidean", and"cosine".- block_size
Number of rows to process per query and reference block.
- plan
Optional execution plan returned by
knn_plan_bigmatrix().- exclude_self
Logical flag controlling whether a query row may return itself as a neighbour when
queryreferences the same matrix asx.- sort
Logical flag controlling whether each query's matches are sorted by distance and then by index.