-
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
-
pwm_inverter
说明: matlab 做的仿真 SPWM 单相 全桥逆变(Matlab do simulation SPWM inverter single-phase bridge)
- 2011-04-09 10:30:31下载
- 积分:1
-
try_LBS_Baidu
利用百度定位,可以对你的当前地理位置进行定位,代码易懂,适合观看学习(Use Baidu location, you can locate your current location, code to understand for viewing learning)
- 2014-12-05 19:38:13下载
- 积分:1
-
moon_pos_vel_J2000
通过坐标转换的方法估算月球在某一时刻在J2000坐标系下的位置和速度。(理解航天中坐标转化、时间系统的学习案例)(Through the coordinates of the conversion method to estimate the moon at a time in the J2000 coordinate system under the location and speed. (Understanding of aerospace coordinate transformation, time system learning case))
- 2020-10-07 20:17:36下载
- 积分:1
-
机器人航路规划代码合集
说明: MATLAB蚁群算法机器人行驶路线紧急避碰(Ant colony algorithm)
- 2019-03-15 10:12:39下载
- 积分:1
-
pcm_with_noise_matlab
simulator pcm with noise using matlab
- 2009-03-05 17:56:03下载
- 积分:1
-
left-crusion
消除左递归,包括自上而下的非递归分析和自上而下的分析(Eliminate left recursion, including non-recursive top-down analysis and top-down analysis)
- 2013-11-15 19:47:57下载
- 积分:1
-
jiemian
matlab工作界面,运算符与操作符的含义和用法,建模和编程的一些实例(Matlab interface, the operator and the meaning and usage of the operator, the modeling and programming examples)
- 2015-04-09 19:47:22下载
- 积分:1
-
基于Q学习的最短路径问题
本程序的主要算法和思路是基于Q学习的。
主要的步骤有:
1、 初始化环境状态和(状态,动作)对对应的Q函数值
2、 循环执行以下步骤,直到Q矩阵稳定不变:
2.1 根据当前的Q函数选择动作
2.2 获得奖励
2.3 观察新的环境状态
2.4 令
2.5
- 2022-03-15 21:05:39下载
- 积分:1
-
mse
使用程序实现mse函数的三维设计实现,可以表现出不同的最小均方误差的各种情况(MSE realize the use of procedures designed to achieve three-dimensional function, can be expressed in different MMSE various situations)
- 2007-09-16 09:48:45下载
- 积分:1