K-Means算法 [英] K- Means algorithm

查看:197
本文介绍了K-Means算法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将程序Java中的K-means算法。我算过了一些阵列,每个包含了一些coeficients的。我需要使用K-means算法,以便把所有这些数据。你知道任何实现这个算法?

I'm trying to programm a k-means algorithm in Java. I have calculated a number of arrays, each of them containing a number of coeficients. I need to use a k-means algorithm in order to group all this data. Do you know any implementation of this algorithm?

感谢

推荐答案

真的,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!

这篇关于K-Means算法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆