Gap Statistic K-means Clustering in Node.js

差距统计是用于K-means聚类差距统计量。本实现基于R,依赖于clusterfckunderscore。安装: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);
zip
gap-stat-master.zip 预估大小:6个文件
folder
gap-stat-master 文件夹
file
package.json 708B
folder
test 文件夹
file
index.js 4KB
file
LICENSE 1KB
file
.gitignore 587B
folder
lib 文件夹
file
gap_stat.js 6KB
file
README.md 617B
zip 文件大小:5.88KB