Skip to content
K-means clustering ruby
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
LICENSE
README.md
kmeans.gemspec
nt_kmeans-0.0.1.gem

README.md

kmeans

K-means clustering ruby

Build gem: gem build kmeans.gemspec

Install gem: gem install ./nt_kmeans-0.0.1.gem

example:

use irb
2.3.8 :001 > require 'kmeans'
 => true
2.3.8 :002 > result = Kmeans.run k, data
result: array
result[0]: list centers
result[1]: data cluster sort by centers

k: (integer) number Cluster

data: (array) list Data

You can’t perform that action at this time.