- Constructor - HammingCode( param1 , param2 ).
HammingCode( param1 , param2 )
# param1 is the message, it can be string, list of binary bits.
# param2 is Boolean, true for when passing message to encode, false for when passing message to check for error or decode.
- Methods
encode()
decode()
checkForError()
parity bits are needed for every 2*i bits. Meaning that the efficiency increases with larger the data.