【文件属性】:
文件名称:squareform:将距离向量转换为距离矩阵,反之亦然
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-02 20:19:45
JavaScript
方形
将距离向量转换为距离矩阵,反之亦然。
安装
$ npm install compute-squareform
要在浏览器中使用,请使用 。
用法
var squareform = require ( 'compute-squareform' ) ;
方形( x )
此方法创建完整的 mxm 距离矩阵,其中包含主对角线上的成对距离和零点。
例子
var foo = require ( 'compute-squareform' ) ;
要从*应用程序目录运行示例代码,
$ node ./examples/index.js
测试
单元
单元测试使用带有断言的测试框架。 要运行测试,请在*应用程序目录中执行以下命令:
$ make test
所有新功能开发都应该有相应的单元测试来验证正确的功能。
测试覆盖率
该存储库使用作为其代码覆盖工具。 要生成测试覆盖率报告,请在顶
【文件预览】:
squareform-master
----.jshintrc(1KB)
----.gitattributes(12B)
----.jshintignore(118B)
----lib()
--------index.js(2KB)
----.npmignore(498B)
----examples()
--------index.js(48B)
----TODO.md(12B)
----.travis.yml(156B)
----LICENSE(1KB)
----test()
--------test.js(1KB)
----README.md(2KB)
----Makefile(2KB)
----.editorconfig(169B)
----.gitignore(711B)
----package.json(1KB)