k-means

所属分类:聚类算法
开发工具:Clojure
文件大小:1307KB
下载次数:0
上传日期:2014-03-11 22:20:22
上 传 者sh-1993
说明:  玩Clojure和k-means。
(Playing around with Clojure and k-means.)

文件列表:
LICENSE (1078, 2014-03-12)
k-means-demo.gif (622769, 2014-03-12)
k-means-demo.mov (944733, 2014-03-12)
project.clj (424, 2014-03-12)
src (0, 2014-03-12)
src\k_means (0, 2014-03-12)
src\k_means\core.clj (1366, 2014-03-12)
src\k_means\demo.clj (4310, 2014-03-12)
src\k_means\utils.clj (2916, 2014-03-12)
test (0, 2014-03-12)
test\k_means (0, 2014-03-12)
test\k_means\core_test.clj (593, 2014-03-12)
test\k_means\utils_test.clj (1803, 2014-03-12)

# K-means Demo of k-means in Clojure to make it easy to visualize 2-d k-means clustering algorithm. GUI built on top of Quil. ![K-means demo](https://raw.github.com/elben/k-means/master/k-means-demo.gif "K-means Demo") ## Running the Demo In the k-means folder, run: lein repl # Run tests lein test A window should pop up. - Left-click to spray points. - Right-click to add centers (up to six may be added). - [Space] to take one step in k-means clustering algorithm. - `r` will reset the points. That's about it! # Miscellaneous To run tests: `lein test`. Or, to run tests in the REPL: ```clojure (ns k-means.core-test) (run-tests) ;; Runs a specific test named test-my-test. (test-my-test) ```

近期下载者

相关文件


收藏者