convolutionalcode.es

1.0.4 • Public • Published

convolutionalcode.es

Encoder decoder for trellis based convolutional codes ported from acorbe / convEncoder

Live demo

https://ryunosinfx.github.io/convolutionalcode.es/index.html

usage

https://ryunosinfx.github.io/convolutionalcode.es

encode

<script type="module" src="./ConvolutionalCode.js">
import { ConvolutionalCode, BitLength2, CodifEsempioLibro540 } from './ConvolutionalCode.js';
  // Ratio :1/2 -> BitLength2
  // Ratio :1/3 -> CodifEsempioLibro540
  const config = BitLength2; // or CodifEsempioLibro540
  
  // input byte data
  const planeUint8array = new Uint8Array([xxxxxxxxxxxxxxxxxxxxxxxxxx]);

  const convolutionalCode = new ConvolutionalCode(config);
  const encordedUint8Array = convolutionalCode.encode(planeUint8array);
      
</script>

decode

<script type="module" src="./ConvolutionalCode.js">
import { ConvolutionalCode, BitLength2, CodifEsempioLibro540 } from './ConvolutionalCode.js';
  // Ratio :1/2 -> BitLength2
  // Ratio :1/3 -> CodifEsempioLibro540
  const config = BitLength2; // or CodifEsempioLibro540
  
  // input byte data
  const encordedUint8Array = new Uint8Array([yyyyyyyyyyyyyyyyyyyyyyy]); 

  const convolutionalCode = new ConvolutionalCode(config);
  const decodedUint8Array = convolutionalCode.decode(encordedUint8Array);
    
</script>

Licence

MIT

Package Sidebar

Install

npm i convolutionalcode.es

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

49.1 kB

Total Files

12

Last publish

Collaborators

  • ryunosinfx3