-
NewK-means-clustering-algorithm
说明: 珍藏版,可实现,新K均值聚类算法,分为如下几个步骤:
一、初始化聚类中心
1、根据具体问题,凭经验从样本集中选出C个比较合适的样本作为初始聚类中心。
2、用前C个样本作为初始聚类中心。
3、将全部样本随机地分成C类,计算每类的样本均值,将样本均值作为初始聚类中心。
二、初始聚类
1、按就近原则将样本归入各聚类中心所代表的类中。
2、取一样本,将其归入与其最近的聚类中心的那一类中,重新计算样本均值,更新聚类中心。然后取下一样本,重复操作,直至所有样本归入相应类中。
三、判断聚类是否合理
采用误差平方和准则函数判断聚类是否合理,不合理则修改分类。循环进行判断、修改直至达到算法终止条件。(NewK-means clustering algorithm ,Divided into the following several steps:
A, initialize clustering center
1, according to the specific problems, from samples with experience selected C a more appropriate focus the sample as the initial clustering center.
2, with former C a sample as the initial clustering center.
3, will all samples randomly divided into C, calculate the sample mean, each the sample mean as the initial clustering center.
Second, initial clustering
1, according to the sample into the nearest principle clustering center represents the class.
2, as this, take the its recent as clustering center of that category, recount the sample mean, update clustering center. And then taking off, as this, repeated operation until all samples into the corresponding class.
Three, judge clustering is reasonable
Adopt error squares principles function cluster analysis.after clustering whether reasonable, no reasonable criterion revisio)
- 2011-04-06 20:45:56下载
- 积分:1
-
dijkstra-(2)
计算最小生成树,求解最短距离问题,matlab程序代码(注:不是只是两点之间最短路径,不是遍历问题)。(solve the problem of the shortest path.)
- 2012-05-13 10:40:37下载
- 积分:1
-
DFIG-torque-program
这是一个用Matlab-S函数写的DFIG转矩程序(This is written in a Matlab-S function DFIG torque program)
- 2012-05-28 17:20:39下载
- 积分:1
-
ch5
系统辨识和控制方面的程序,适用于初学者,比较好(System identification and control procedures for beginners)
- 2013-10-23 21:31:25下载
- 积分:1
-
zhuangtaifangcheng
用自定义函数和状态方程函数编写的齿轮系统SIMULINK仿真。(Self-defined functions and equations of state functions written in gear system with SIMULINK.)
- 2020-11-18 12:39:38下载
- 积分:1
-
TP_3A
matlab music经典算法 2源信号,入射角为0 45°进行DOA估计(algorithm of music(multiple signal classification))
- 2011-01-15 21:14:30下载
- 积分:1
-
Rayleigh_distribute
瑞利分布的Matlab程序,主要用于建立类似瑞利分布的数学模型(Matlab program Rayleigh distribution, mainly used to build a mathematical model similar to the Rayleigh distribution)
- 2015-04-07 11:05:03下载
- 积分:1
-
FastICA
它主要介绍了独立分量分析法的步骤以及matlab实现所调用的函数。还有一些例子。(It mainly covers the steps and independent component analysis method to achieve the matlab function call. There are also examples.)
- 2015-04-14 17:42:38下载
- 积分:1
-
CUCAO
粗糙集MATLAB程序~~~~~~~~~~~~~~~~~~~~~(MATLAB PROGRAM)
- 2009-09-10 22:35:37下载
- 积分:1
-
ACP
a simple ACP program under matlab
- 2010-11-04 00:30:44下载
- 积分:1