useDynLib("dbscan")

import("Rcpp")

importFrom("graphics", "plot", "par", "segments", "lines", "polygon")
importFrom("grDevices", "palette", "chull", "adjustcolor")

importFrom("stats", "dist")

importFrom("methods", "is")

export(
  kNN,
  kNNdistplot,
  kNNdist,
  frNN,
  dbscan,
  optics,
  optics_cut,
  opticsXi,
  lof,
  hullplot
)

S3method(print, optics)
S3method(plot, optics)
S3method(predict, optics)

S3method(print, dbscan_fast)
S3method(predict, dbscan_fast)
