clusterio:K-means 和层次聚类

时间:2021-06-27 23:18:13
【文件属性】:
文件名称:clusterio:K-means 和层次聚类
文件大小:12KB
文件格式:ZIP
更新时间:2021-06-27 23:18:13
JavaScript 集群 一个js库。 包括和。 安装 凉亭安装集群 K均值 var colors = [ [ 20 , 20 , 80 ] , [ 22 , 22 , 90 ] , [ 250 , 255 , 253 ] , [ 0 , 30 , 70 ] , [ 200 , 0 , 23 ] , [ 100 , 54 , 100 ] , [ 255 , 13 , 8 ] ] ; // Calculate clusters. var clusters = clusterio . kmeans ( colors , 3 ) ; kmeans的第二个参数是您想要的聚类数(默认为Math.sqrt(n/2) ,其中n是向量数)。 它返回一个簇数组,对于这个例子: [ [ [ 200 , 0 , 23 ] , [ 255 , 13 , 8 ] ] , [ [
【文件预览】:
clusterio-master
----.gitignore(576B)
----package.json(1KB)
----src()
--------k-means.js(3KB)
--------hcluster.js(5KB)
--------intro.js(12B)
--------outro.js(11B)
--------core.js(69B)
--------distance.js(569B)
----karma.conf.js(177B)
----.bowerrc(42B)
----gulpfile.js(1KB)
----dist()
--------js()
----README.md(3KB)
----bower.json(775B)
----test()
--------spec()
----.editorconfig(193B)

网友评论