资源描述
单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,2018-1-7,#,聚类算法在,R,中的实现,CRAN Task View:Cluster Analysis&Finite Mixture Models,Maintainer:Friedrich Leisch and Bettina Gruen,Contact:Bettina.Gruen at jku.at,Version:2016-05-29,This CRAN Task View contains a list of packages that can be used for finding groups in data and modeling unobserved cross-sectional heterogeneity.Many packages provide functionality for more than one of the topics listed below,the section headings are mainly meant as quick starting points rather than an ultimate categorization.Except for packages stats and cluster(which ship with base R and hence are part of every R installation),each package is listed only once.,Most of the packages listed in this CRAN Task View,but not all are distributed under the GPL.Please have a look at the DESCRIPTION file of each package to check under which license it is distributed.,Hierarchical Clustering:,Functions hclust()from package stats and agnes()from,cluster,are the primary functions for agglomerative hierarchical clustering,function diana()can be used for divisive hierarchical clustering.Faster alternatives to hclust()are provided by the packages,fastcluster,and,flashClust,.,Function dendrogram()from stats and associated methods can be used for improved visualization for cluster dendrograms.,The,dendextend,package provides functions for easy visualization(coloring labels and branches,etc.),manipulation(rotating,pruning,etc.)and comparison of dendrograms(tangelgrams with heuristics for optimal branch rotations,and tree correlation measures with bootstrap and permutation tests for significance).,Package,dynamicTreeCut,contains methods for detection of clusters in hierarchical clustering dendrograms.,Package,genie,implements a fast hierarchical clustering algorithm with a linkage criterion which is a variant of the single linkage method combining it with the Gini inequality measure to robustify the linkage method while retaining computational efficiency to allow for the use of larger data sets.,hybridHclust,implements hybrid hierarchical clustering via mutual clusters.,Package,isopam,uses an algorithm which is based on the classification of ordination scores from isometric feature mapping.The classification is performed either as a hierarchical,divisive method or as non-hierarchical partitioning.,The package,protoclust,implements a form of hierarchical clustering that associates a prototypical element with each interior node of the dendrogram.Using the packages plot()function,one can produce dendrograms that are prototype-labeled and are therefore easier to interpret.,pvclust,is a package for assessing the uncertainty in hierarchical cluster analysis.It provides approximately unbiased p-values as well as bootstrap p-values.,Package,sparcl,provides clustering for a set of,n,observations when,p,variables are available,where,p,n,.It adaptively chooses a set of variables to use in clustering the observations.Sparse K-means clustering and sparse hierarchical clustering are implemented.,Partitioning Clustering:,Function kmeans()from package stats provides several algorithms for computing partitions with respect to Euclidean distance.,Function pam()from package,cluster,implements partitioning around medoids and can work with arbitrary distances.Function clara()is a wrapper to pam()for larger data sets.Silhouette plots and spanning ellipses can be used for visualization.,Package,apcluster,implements Freys and Duecks Affinity Propagation clustering.The algorithms in the package are analogous to the Matlab code published by Frey and Dueck.,Package,clusterSim,allows to search for the optimal clustering procedure for a given dataset.,Package,evclust,implements various clustering algorithms that produce a credal partition,i.e.,a set of Dempster-Shafer mass functions representing the membership of objects to clusters.,Package,flexclust,provides k-centroid cluster algorithms for arbitrary distance measures,hard competitive learning,neural gas and QT clustering.Neighborhood graphs and image plots of partitions are available for visualization.Some of this functionality is also provided by package,cclust,.,Package,kernlab,provides a weighted kernel version of the k-means algorithm by kkmeans and spectral clustering by specc.,Package,kml,provides k-means clustering specifically for longitudinal(joint)data.,Package,skmeans,allows spherical k-Means Clustering,i.e.k-means clustering with cosine similarity.It features several methods,including a genetic and a simple fixed-point algorithm and an interface to the CLUTO vcluster program for clustering high-dimensional datasets.,Package,trimcluster,provides trimmed k-means clustering.Package,tclust,also allows for trimmed k-means clustering.In addition using this package other covariance structures can also be specified for the clusters.,系统聚类法,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,#,代码清单,#,data(iris);attach(iris),iris.hc-hclust(dist(iris,1:4),#plot(iris.hc,hang=-1),plclust(iris.hc,label
展开阅读全文