pairs_within_r_max: Pick close pairs.

Description Usage Arguments Details Value

View source: R/radius.r

Description

Pick indices of point pairs that are within r_max of each other.

Usage

1
pairs_within_r_max(dist_m, r_max)

Arguments

dist_m

A distance matrix, e.g. from pairdist, containing distances between all points.

r_max

Maximum radius as a scalar.

Details

If close enough to each other, (x_i, x_j) and (x_j, x_i) are both included as long as i != j.

Value

A matrix of indices, row and column values separately.


myllym/marksummary documentation built on May 23, 2019, 11:59 a.m.