groupwise.density:
Searches Subsets for Nearest Neighbor Densities
Description
In order to compare the distributions of different groups within the
same multivariate space, calculates the nearest-neighbor densities of
each point in the whole data set according to the distribution of each subset.
the proportion of each groups neighbors that should be
visited. Proportions are necessary when groups have different sizes
because otherwise the densities aren't as comparable.