【文件属性】:
文件名称:gap-stat:node.js 中的差距统计
文件大小:6KB
文件格式:ZIP
更新时间:2024-07-26 13:56:58
JavaScript
差距统计
K-means 聚类的差距统计量。 基于 R 实现( )。
取决于 clusterfck ( ) 和下划线 ( )。
安装
npm install gap-stat
例子
var gs = require ( "gap-stat" ) ;
var d = [ [ 20 , 20 , 80 ] ,
[ 22 , 22 , 90 ] ,
[ 250 , 255 , 253 ] ,
[ 0 , 30 , 70 ] ,
[ 200 , 0 , 23 ] ,
[ 100 , 54 , 100 ] ,
[ 255 , 13 , 8 ] ] ;
var result = gs . gap_statistic ( d , 1 , 5 ) ;
console . log
【文件预览】:
gap-stat-master
----package.json(708B)
----test()
--------index.js(4KB)
----LICENSE(1KB)
----.gitignore(587B)
----lib()
--------gap_stat.js(6KB)
----README.md(617B)