chebyshev-distance:计算两个数组之间的切比雪夫距离

时间:2021-06-06 21:34:02
【文件属性】:
文件名称:chebyshev-distance:计算两个数组之间的切比雪夫距离
文件大小:38KB
文件格式:ZIP
更新时间:2021-06-06 21:34:02
JavaScript 切比雪夫距离 计算两个数组之间的。 是在向量空间上定义的度量,其中两个向量之间的距离是沿任何坐标维度的最大差异。 安装 $ npm install compute-chebyshev-distance 要在浏览器中使用,请使用 。 用法 var chebyshev = require ( 'compute-chebyshev-distance' ) ; 切比雪夫( x, y[, 存取器] ) 计算两个数组之间的。 var x = [ 2 , 4 , 5 , 3 , 8 , 2 ] , y = [ 3 , 1 , 5 , - 3 , 7 , 2 ] ; var d = chebyshev ( x , y ) ; // returns 6 对于对象arrays ,提供访问numeric的访问器function 。 var x , y , d ; x = [ [ 1 ,
【文件预览】:
chebyshev-distance-master
----.jshintrc(1KB)
----.gitattributes(12B)
----.jshintignore(118B)
----lib()
--------index.js(2KB)
----.npmignore(498B)
----examples()
--------index.js(267B)
----TODO.md(12B)
----.travis.yml(156B)
----LICENSE(1KB)
----test()
--------test.js(3KB)
----README.md(4KB)
----Makefile(2KB)
----docs()
--------img()
----.editorconfig(169B)
----.gitignore(711B)
----package.json(2KB)

网友评论