0

我无法从 Clustree 检索微集群的数量。以下是代码:

library(streamMOA)
data <- read.csv("data.csv", sep = ",", header = TRUE)
stream <- DSD_Memory(data)
clustree <- DSC_ClusTree(maxHeight = 3)
reset_stream(stream)
update(clustree, stream, 200)

现在如果打印 clustree 对象,我得到:

print(clustree)

ClusTree
Class: DSC_ClusTree, DSC_Micro, DSC_MOA, DSC 
Number of micro-clusters: 20 

但是,clustree&description、clustree$options 或 clustree&javaObj 没有给出微集群的数量。有什么帮助吗?

4

1 回答 1

0

a_greater_than_five <- ifelse(a > 5, TRUE, FALSE)

于 2016-06-01T16:11:18.133 回答