如果我仅施加簇间距离下限,可能的聚类方法是什么?
层次聚类单联动:
x <- c(1, 4, 5, 6, 9, 29, 32, 46, 55)
tree <- hclust(dist(x), method = "single")
split(x, cutree(tree, h = 19))
# $`1`
# [1] 1 4 5 6 9
#
# $`2`
# [1] 29 32 46 55
如果我仅施加簇内距离上限,可能的聚类方法是什么?
层次聚类完整联动:
x <- c(1, 4, 5, 6, 9, 20, 26, 29, 32)
tree <- hclust(dist(x), method = "complete")
split(x, cutree(tree, h = 9))
# $`1`
# [1] 1 4 5 6 9
#
# $`2`
# [1] 20
#
# $`3`
# [1] 26 29 32