This directory contains code implementing the K-means algorithm. Source code
may be found in KMEANS.CPP. Sample data isfound in KM2.DAT. The KMEANS
program accepts input consisting of vectors and calculates the given
number of cluster centers using the K-means algorithm. Output is
directed to the screen.
Usage for KMEANS is:
KMEANS SOURCEFILE <enter>
The format of the source file is:
NPat - Number of patterns (int)
SizeVect - Size of vector (int)
NClust - Number of cluster centers(int)
vect[1,1] ... vect[1,SizeVect] - vector 1 (real)
vect[2,1] ... vect[2,SizeVect] - vector 2 (real)
. .
. .
. .
vect[NPat,1] ... vect[NClust,SizeVector] - vector N (real)
To compile:
ICC KMEANS.CPP <enter>
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
K-Means动态聚类算法源程序.rar (4个子文件)
K-Means动态聚类算法源程序
KMEANS
KM2.DAT 191B
KMEANS.CPP 9KB
KMEANS.EXE 51KB
README.TXT 946B
共 4 条
- 1
资源评论
- ty13hxc2013-01-08下载了,没法用行
- IELTS_apple2014-05-04c语言,需要改
- highql2012-10-31需要修改一下main函数才可以在windows下运行.
- hedgehogice2011-11-06好像运行不了啊。。。
- b6qianqian332012-06-04算法为c版本实现,而且不能运行
taianmei
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功