Skip to content

lutzthies/lhc_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linear Hamming Code Generator

Not the Large Hadron Collider but a neat tool to generate the linear Hamming Code that is perfect for your needs.

Simple Usage

For Frank:

from lhc_gen import LHC
code = LHC(5, extended=True) # generate extended Hamming code for source alphabet length 5
# print generator and parity check matrix
code.H
code.G
# example encoding and decoding
code.encode(11111)
code.decode(1111111100)

About

🔧 Linear Hamming Code Generator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages