minDistToHigher: Calculate distance to nearest observation of higher density
Description
This function finds, for each observation, the minimum distance to an
observation of higher local density. With a rowise implementation of
the pairwise distance calculation, makes the local density estimation
fast and memory efficient. A big benifit is the aviliability for big
data. Parallel computing is supported for fast calculation.
Usage
minDistToHigher(data, rho, ifParallel = FALSE)
Arguments
data
Numeric matrix of data or data frame.
rho
A vector of local density values as outputted by localDensity.
ifParallel
A boolean decides if run parallelly.
Value
A list of distances to closest observation of higher density and the ID