lbg
所属分类:书籍源码
开发工具:C++
文件大小:3KB
下载次数:377
上传日期:2004-12-06 15:55:03
上 传 者:
zsy2004
说明: 矢量量化聚类程序,c++编写,已调试通过,内附说明文档。
(VQ clustering procedure, c preparation, testing, documentation attached.)
文件列表:
lbg (0, 2004-12-06)
lbg\KMEANS.CPP (9859, 2004-06-03)
lbg\km.txt (191, 2004-06-03)
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
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
近期下载者:
相关文件:
收藏者: