array-normalize:将数组归一化为零均值和单位方差

时间:2021-02-15 20:51:51
【文件属性】:
文件名称:array-normalize:将数组归一化为零均值和单位方差
文件大小:5KB
文件格式:ZIP
更新时间:2021-02-15 20:51:51
statistics math dsp array JavaScript 数组归一化 将数组标准化为单位长度,即0..1范围。 请参阅。 const normalize = require ( 'array-normalize' ) normalize ( [ 0 , 50 , 100 ] ) // [0, .5, 1] normalize ( [ 0 , 0 , .1 , .2 , 1 , 2 ] , 2 ) // [0, 0, .1, .1, 1, 1] normalize ( [ 0 , .25 , 1 , .25 ] , 2 , [ 0 , .5 , 1 , .5 ] ) // [0, .5, 1, .5]) API array = normalize(array,stride = 1,bounds?) 使用n维度的可选跨度对n维数组进行归一化。 对于2d数据布局为[x, y, x, y, ...] 。 每个维度均独立标准化,例如。 2d数组被标
【文件预览】:
array-normalize-master
----.eslintrc.json(1KB)
----.gitignore(13B)
----package.json(831B)
----package-lock.json(393B)
----.travis.yml(155B)
----index.js(1KB)
----test.js(773B)
----index.mjs(1KB)
----test.mjs(768B)
----readme.md(1KB)

网友评论