Gap Statistic K-means Clustering in Node.js
差距统计是用于K-means聚类的差距统计量。本实现基于R,依赖于clusterfck和underscore。安装:npm install gap-stat
。示例代码:
var gs = require("gap-stat");
var d = [
[20, 80],
[22, 90],
[250, 255, 253],
[0, 30, 70],
[200, 23],
[100, 54, 100],
[255, 13, 8]
];
var result = gs.gap_statistic(d, 1, 5);
console.log(result);
gap-stat-master.zip
预估大小:6个文件
gap-stat-master
文件夹
package.json
708B
test
文件夹
index.js
4KB
LICENSE
1KB
.gitignore
587B
lib
文件夹
gap_stat.js
6KB
README.md
617B
5.88KB
文件大小:
评论区