estimateDc: Estimate the distance cutoff (density neighbourhood) from down-sampled data
Description
This function estimate a distance cutoff value from the down-samples data,
wchich meet the criteria that the average neighbor rate (number of points
within the distance cutoff value) fall between the provided range.Usage
estimateDc(data, sampleSize = 5000, neighborRateLow = 0.01,
neighborRateHigh = 0.02)
Arguments
data
Numeric matrix of data or data frame.
sampleSize
The size of the down-sampled data.
neighborRateLow
The lower bound of the neighbor rate (default 0.01).
neighborRateHigh
The upper bound of the neighbor rate (default 0.15).
Value
- A numeric value giving the estimated distance cutoff value.