function [color,best,kmeans]=som_kmeanscolor(sM,C,initRGB,contrast) % SOM_KMEANSCOLOR Map unit color code according to K-means cl…
KMeans 源代码
k均值聚类算法(k-meansclusteringalgorithm)是一种迭代求解的聚类分析算法,其步骤是,预将数据分为K组,则随机选取K个对象作为初始的聚类中心,然后计算每个对象与各个种子聚类中心之间的距离,把每个对象分配给距离它最近的聚类中心。聚类中心以及分配给它们的对象就…
% function cl = clkmeans(x,k,sfct,oldcl) % % DESCRIPTION % provides cluster labels 1 to k applying k-means to x % make sur…
function [color,best,kmeans]=som_kmeanscolor(sM,C,initRGB,contrast) % SOM_KMEANSCOLOR Map unit color code according to K-means cl…
%KMEANS K-means clustering % % [c s] = KMEANS(x,k) % [c s] = KMEANS(x,k, x0) % [c s] = KMEANS(x,k, x0) % % K-means clustering for …
%KMEANS K-means clustering % % [c s] = KMEANS(x,k) % [c s] = KMEANS(x,k, x0) % [c s] = KMEANS(x,k, x0) % % K-means clustering for …
Microsoft Developer Studio Workspace File, Format Version 6.00 # 警告: 不能编辑或删除该工作区文件! ##########################################…
# Microsoft Developer Studio Project File - Name="KMEANS" - Package Owner= # Microsoft Developer Studio Generated Build File, For…
Build Log --------------------Configuration: KMEANS - Win32 Debug-------------------- Command Lines Creating temporary file…
Contents.m KMEANS K-means clustering algorithm.
function [model,y] = kmeans(X,num_centers,Init_centers) % KMEANS K-means clustering algorithm. % % Synopsis: % [model,y] = kmean…