consider_radius: Handle things considering the radius vector.

Description Usage Arguments Value

View source: R/radius.r

Description

Handle things considering the radius vector.

Usage

1
consider_radius(pattern, r_max, r_vec)

Arguments

pattern

A ppp object.

r_max

The maximum radius to consider. r_vec overrides r_max.

r_vec

The radius vector to consider. r_vec overrides r_max.

Value

A list containing the radius vector (r_vec), the number of bins (n_bin), the indexing matrix to pick the point pairs within r_max (nearby_arr_idx) and the indices of the bins in which those point pairs belong to distance-wise (bin_idx).

Assume n is the amount of points in the point pattern and p <= n, then nearby_arr_idx is an integer matrix of size p x 2 and bin_idx is an integer vector of size p. nearby_arr_idx can be used to index an n x n matrix describing some value for each point pair OR a vector of length n describing some value of each point. Using nearby_arr_idx will pick p values in the former case, and 2 * p in the latter case.

For example, distances between all points can be stored simply in an n x n matrix. The mark of each point can be stored simply in a vector of length n. Use nearby_arr_idx and bin_idx accordingly.


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