HCSP | R Documentation |
Our simulations revealed that the fastest and most accuirate
clustering algorithm for modest-sized contiuous data sets is the
combination of hierarchical clustering (with Ward's linkage rule)
followed by SillyPutty. The function HCSP
implements this
combination.
HCSP(dis, K, method = "ward.D2", ...)
dis |
An object of class |
K |
The desired number of clusters. |
method |
Sane as the corresponding argument for |
... |
Extra arguments to the |
The HCSP
function that first runs hierarchical clustering, then
applies the SillyPutty
algorithm.
A list containing two items: hc
, the results of hierarchical
clustering, and sp
, a SillyPutty
object by applying the
algorithm to the result of cutting the dendrogram to produce K
clusters.
Kevin R. Coombes krc@silicovore.com
Polina Bombina, Dwayne Tally, Zachary B. Abrams, Kevin R. Coombes. SillyPutty: Improved clustering by optimizing the silhouette width, bioRxiv 2023.11.07.566055; doi: https://doi.org/10.1101/2023.11.07.566055
data(eucdist)
set.seed(1234)
twostep <- HCSP(eucdist, K=5)
sw <- cluster::silhouette(twostep$sp@cluster, eucdist)
plot(sw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.