且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

K-Means算法

更新时间:2023-12-02 21:44:04

真的,KMEANS是一个非常简单的算法。任何好的理由不能手工编码它自己呢?我做到了Qt中,然后移植了code到普通的旧STL,没有太多的问题。

Really, KMeans is a really easy algorithm. Any good reason why not hand coding it yourself? I did it in Qt and then ported the code to plain old STL, without too much problems.

我开始是风扇乔尔的想法:没有外部的依赖关系,所以请随时告诉我有什么好的一大块的软件,你不用管,和其他人在这个问题上已经提到它不是一个良好的软件/

I am started to be a fan to Joel's idea: no external dependencies, so please feel free to tell me what's good about a large piece of software you don't control, and others on this question have already mentioned it's not a good piece of software/

谈话是便宜,真正的男人展示自己的code世界: http://github.com/elcuco/data%5Fmining%5Fdemo

Talk is cheap, real man show their code to the world: http://github.com/elcuco/data%5Fmining%5Fdemo

我要清理codea的一点是比较通用的,而目前的版本是不是移植到STL的,但它是一个开始!

I should clean the code a little to be more generic, and current version is not ported to STL, but it's a start!