FitKMeans(useful)
FitKMeans()所属R语言包:useful
Fit a series of kmeans clusterings and compute Hartigan's Number
装上一系列的kmeans聚类和计算Hartigan的号码
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Given a numeric dataset this function fits a series of kmeans clusterings with increasing number of centers. k-means is compared to k+1-means using Hartigan's Number to determine if the k+1st cluster should be added.
给出一个数字数据集,此功能适合一系列的kmeans聚类中心,越来越多的。 k-means的相比,第k +1装置使用Hartigan的数量,以确定是否第k +1个聚类应添加。
用法----------Usage----------
FitKMeans(x, max.clusters = 12L, spectral = FALSE,
nstart = 1L, iter.max = 10L,
algorithm = c("Hartigan-Wong", "Lloyd", "Forgy", "MacQueen"),
seed = NULL)
参数----------Arguments----------
参数:x
The data, numeric, either a matrix or data.frame
的数据,数字,无论是一个矩阵或数据框
参数:max.clusters
The maximum number of clusters that should be tried
应该尝试的最大数量的簇
参数:spectral
logical; If the data being fit are eigenvectors for spectral clustering
逻辑,如果数据被适应的谱聚类的特征向量
参数:nstart
The number of random starts for the kmeans algorithm to use
数的随机启动的的kmeans算法使用
参数:iter.max
Maximum number of tries before the kmeans algorithm gives up on conversion
kmeans算法的最大尝试次数之前放弃转换
参数:algorithm
The desired algorithm to be used for kmeans. Options are c("Hartigan-Wong", "Lloyd", "Forgy", "MacQueen"). See kmeans
所需的算法要使用的kmeans。选项是c(“哈蒂根黄”,“劳”,“Forgy”,“MacQueen”)。见kmeans
参数:seed
If not null, the random seed will be reset before each application of the kmeans algorithm
如果不为null,将被重置之前,每个应用程序的kmeans算法随机种子
Details
详细信息----------Details----------
A consecutive series of kmeans is computed with increasing k (number of centers). Each result for k and k+1 are compared using Hartigan's Number. If the number is greater than 10, it is noted that having k+1 clusters is of value.
一系列连续的k均值计算,增加K(中心)。使用Hartigan的数,k和k +1的每个结果进行比较。如果数目是大于10,应该指出,具有k +1簇是为value。
值----------Value----------
A data.frame consisting of columns, for the number of clusters, the Hartigan Number and whether that cluster should be added, based on Hartigan's Number.
数据框的列组成的产业聚类,哈蒂根数的数量,以及是否应加入该聚类,根据Hartigan的号码。
(作者)----------Author(s)----------
Jared P. Lander www.jaredlander.com
参考文献----------References----------
参见----------See Also----------
kmeans PlotHartigan
kmeansPlotHartigan
实例----------Examples----------
data(iris)
hartiganResults <- FitKMeans(iris[, -ncol(iris)])
PlotHartigan(hartiganResults)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|