Learn R Programming

MRIaggr (version 1.1.5)

calcGroupsCoords_cpp: Find spatial groups

Description

C++ function called by calcGroupsCoords to compute the spatial groups. For internal use.

Usage

calcGroupsCoords_cpp(coords_NNA, index_NNA, min_index_NNA, max_index_NNA, Neighborhood, coords_max, max_groups, verbose)

Arguments

coords_NNA
the spatial coordinates of the observations in C version (beginning at 0). matrix.
index_NNA
the index of the coordinates in a array in C version (beginning at 0). numerical vector.
min_index_NNA
the minimum value of index_NNA. postive integer.
max_index_NNA
the maximum number of index_NNA. postive integer.
Neighborhood
the type of neighbourhood. character.
coords_max
the maximum coordinate in each dimension. numerical vector
max_groups
the maximum number of groups. postive integer.
verbose
should the execution of the function be traced ? logical.