powered by
Takes a clustering \(G\) and constructs \(B(G)\).
gforce.clust2mat(clusters)
length \(d\) vector. Assigns each variable or data point to a cluster. Cluster names can be numbers or strings.
a \(d x d\) numeric array that contains the partnership matrix corresponding to clusters.
clusters
# NOT RUN { clusters <- c(1,1,1,2,2,2,3,3) B_clust <- gforce.clust2mat(clusters) # }
Run the code above in your browser using DataLab