gda_min_distthreshold function

(For internally use and test only) Minimum Distance Threshold for Distance-based Weights

(For internally use and test only) Minimum Distance Threshold for Distance-based Weights

Get minimum threshold of distance that makes sure each observation has at least one neighbor

gda_min_distthreshold(geoda_obj, is_arc = FALSE, is_mile = TRUE)

Arguments

  • geoda_obj: An instance of geoda-class
  • is_arc: (optional) FALSE (default) or TRUE, compute arc distance between two observations
  • is_mile: (optional) TRUE (default) or FALSE, if 'is_arc' option is TRUE, then 'is_mile' will set distance unit to 'mile' or 'km'.

Returns

A numeric value of minimum threshold of distance