Skip to content

Instantly share code, notes, and snippets.

@YairMZ
YairMZ / convolutional_code.py
Created November 21, 2021 07:05
Example implementation of non-recursive convolutional code
import math
class DecodingError(Exception):
"""Raised if no path ends in the zero state"""
pass
class TrellisPath:
def __init__(self, last_state=0):
@YairMZ
YairMZ / Covolutional_code.py
Last active November 21, 2021 07:49
example implementation of non-recursive convolutional code
import math
class DecodingError(Exception):
"""Raised if no path ends in the zero state"""
pass
class TrellisPath:
def __init__(self, last_state=0):