sizeOfLargestCluster | R Documentation |
Calculate the Number of Items in the Largest Cluster of a Set Partition
sizeOfLargestCluster(partition)
partition |
A numeric vector representing a partition of the integers 1, ..., n using cluster labels |
The number of items in the largest cluster of the given partition as a numeric vector of length one.
p <- c(0,1,1,1,1,1,2) sizeOfLargestCluster(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.