log2:计算逐个元素的对数(以2为底)

时间:2021-05-14 07:36:28
【文件属性】:
文件名称:log2:计算逐个元素的对数(以2为底)
文件大小:25KB
文件格式:ZIP
更新时间:2021-05-14 07:36:28
JavaScript 二元对数 计算按元素的(以2为底的数)。 (以2为底的数)定义为以下任何正实数: 安装 $ npm install compute-log2 要在浏览器中使用,请使用 。 用法 var log2 = require ( 'compute-log2' ) ; log2(x [,opts]) 计算按元素的二进制对数(以2为底的对数)。 x可以是number , array ,typed array或matrix 。 var matrix = require ( 'dstructs-matrix' ) , data , mat , out , i ; out = log2 ( Math . pow ( 2 , 3 ) ) ; // returns 3 out = log2 ( - 9 ) ; // returns NaN data = [ 3 , 7 , 9 ] ; out =
【文件预览】:
log2-master
----.travis.yml(154B)
----.jshintignore(118B)
----docs()
--------img()
----package.json(2KB)
----test()
--------test.array.js(1KB)
--------test.matrix.js(2KB)
--------test.number.js(896B)
--------test.typedarray.js(1KB)
--------test.accessor.js(2KB)
--------test.deepset.js(2KB)
--------test.validate.js(3KB)
--------utils()
----LICENSE(1KB)
----TODO.md(11B)
----.npmignore(498B)
----examples()
--------index.js(1KB)
----.gitignore(1KB)
----lib()
--------index.js(3KB)
--------deepset.js(951B)
--------accessor.js(899B)
--------number.js(98B)
--------typedarray.js(796B)
--------array.js(762B)
--------matrix.js(620B)
--------validate.js(2KB)
----Makefile(2KB)
----README.md(9KB)
----.jshintrc(1KB)
----.editorconfig(169B)
----.gitattributes(12B)

网友评论