distance_near_chunk_cpp: Calculate thresheld pairwise distance for a row using loops...

View source: R/RcppExports.R

distance_near_chunk_cppR Documentation

Calculate thresheld pairwise distance for a row using loops for parallelization

Description

Calculate thresheld pairwise distance for a row using loops for parallelization

Usage

distance_near_chunk_cpp(
  locs,
  locs_grid,
  radius,
  n_neighbors = 86L,
  byrow = FALSE,
  joint_index = TRUE,
  nchunks = NULL,
  ncores = 1L
)

Arguments

locs

An N x 2 matrix of spatial locations

locs_grid

An N_grid x 2 matrix of spatial grids

radius

The thresholded radius

n_neighbors

The expected number of neighbors based on the MRA grid

byrow

Perform calculation row/column-wise

nchunks

The number chunks to divide the data into

ncores

The number of openmp threads

Value

The thresheld pairwise distance


jtipton25/sgMRA documentation built on Feb. 9, 2023, 4:53 a.m.