lfsr:线性反馈移位寄存器

时间:2021-04-27 14:49:26
【文件属性】:
文件名称:lfsr:线性反馈移位寄存器
文件大小:6KB
文件格式:ZIP
更新时间:2021-04-27 14:49:26
JavaScript LFSR 使用异或(XOR)作为以javascript编写的反馈函数的线性反馈移位寄存器 LFSR = require ( 'lfsr' ) ; var bitLength = 10 , initialState = parseInt ( '1010101010' , 2 ) , // seed lfsr = new LFSR ( bitLength , initialState ) ; // get sequence of 10 pseudo-random bits lfsr . seq ( 10 ) ; // => 1018 // get string representing sequence of 10 pseudo-random bits lfsr . seqString ( 10 ) ; // => '00001010100' // Initialize r
【文件预览】:
lfsr-master
----.gitignore(535B)
----README.md(719B)
----test()
--------statistical.js(1KB)
--------base.js(997B)
--------utils.js(664B)
----LICENSE(1KB)
----package.json(535B)
----index.js(4KB)
----.travis.yml(84B)

网友评论