clustModes | R Documentation |
This function performs hierarchical clustering of density modes found
by hmmvbFindModes()
.
clustModes(modes, cutree.args, hclust.args = NULL, dist.args = NULL)
modes |
An object of class 'HMMVBclust' returned by |
cutree.args |
A list with arguments to |
hclust.args |
A list with arguments to |
dist.args |
A list with arguments to |
An object of class 'HMMVBclust' with new cluster labels and cluster sizes. Note that coordinates of modes after merging are not calculated and
clustParam
field is empty.
hmmvbClust
, hmmvbFindModes
Vb <- vb(1, dim=4, numst=2)
set.seed(12345)
hmmvb <- hmmvbTrain(unique(iris[,1:4]), VbStructure=Vb)
modes <- hmmvbFindModes(unique(iris[,1:4]), model=hmmvb)
# default mode clustering
merged <- clustModes(modes, cutree.args=list(h=1.0))
# mode clustering using Manhattan distance
merged <- clustModes(modes, dist.args=list(method="manhattan"), cutree.args=list(h=1.0))
# mode clustering using single linkage
merged <- clustModes(modes, hclust.args=list(method="single"), cutree.args=list(h=1.0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.