从R中的DBSCAN中提取核心点

时间:2017-10-10 05:31:44

标签: r dbscan

根据以下数据,我已在这些点上应用了DBSCAN

set.seed(294056)
df = data.frame(x = runif(1000), y = runif(1000), z = runif(1000))
library(dbscan)
db = dbscan(df, eps = 0.3, minPts =100) # formed 1 cluster
print(db)

DBSCAN clustering for 1000 objects.
Parameters: eps = 0.3, minPts = 100
The clustering contains 1 cluster(s) and 60 noise points.

  0   1 
 60 940 

Available fields: cluster, eps, minPts

我想从该群集中提取核心点。有没有办法提取这些点?

1 个答案:

答案 0 :(得分:1)

dbscanborderPoints = F中。

这样,您只能通过丢弃边界点来检索核心点。