spatgraph-spectral(spatgraphs)
spatgraph-spectral()所属R语言包:spatgraphs
Spectral clustering
谱聚类算法
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Spectral clustering: Given a weighted adjacency matrix W and G=diag(rowSums(W)), the Laplacian is L=G-W, we compute eigenvalues, and for the 2 m+1) smallest eigenvalues, we use the corresponding eingenvectors to do a K-means clustering.
谱聚类算法:拉普拉斯算子的加权邻接矩阵W和G = DIAG(rowSums(W)),L = GW,我们计算特征值,为2(m +1)个最小特征值,我们使用相应的eingenvectors,做一个K-means聚类。
用法----------Usage----------
spectral.sg(x, pp, m=2, K=3, diagplot=FALSE, ...)
参数----------Arguments----------
参数:x
Weighted graph, sg-object. Will be transformed to W using sg2wadj().
加权图,SG-对象。将被改造为W使用sg2wadj()。
参数:pp
Point pattern.
点模式。
参数:m
Number of eigenvectors to use.
要使用的特征向量的数目。
参数:K
Number of clusters to look for using K-means.
聚类数量看使用的K-means。
参数:diagplot
Plot some diagnostics: Result, first 20 eigenvalues and m eigenvectors.
绘制一些诊断结果,前20个特征值和m的特征向量。
参数:...
Not used at the moment.
未使用的时刻。
Details
详细信息----------Details----------
值----------Value----------
List with $id element denoting each points cluster id, and $sgc object with the clusters.
$ id元素表示每个点的聚类ID,SGC对象的聚类名单。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|