Example #1
0
    def __init__(self, n, k, frozen_bit_position, frozenbits=None):
        PolarCommon.__init__(self, n, k, frozen_bit_position, frozenbits)

        self.error_probability = 0.1  # this is kind of a dummy value. usually chosen individually.
        self.lrs = ((1 - self.error_probability) / self.error_probability,
                    self.error_probability / (1 - self.error_probability))
        self.llrs = np.log(self.lrs)
Example #2
0
    def __init__(self, n, k, frozen_bit_position, frozenbits=None):
        PolarCommon.__init__(self, n, k, frozen_bit_position, frozenbits)

        self.error_probability = 0.1  # this is kind of a dummy value. usually chosen individually.
        self.bsc_lr = (
            (1 - self.error_probability) / self.error_probability,
            self.error_probability / (1 - self.error_probability),
        )
        self.bsc_llrs = np.log(self.bsc_lr)
Example #3
0
 def __init__(self, n, k, frozen_bit_position, frozenbits=None):
     PolarCommon.__init__(self, n, k, frozen_bit_position, frozenbits)
     self.G = hf.get_Fn(n)
Example #4
0
 def __init__(self, n, k, frozen_bit_position, frozenbits=None):
     PolarCommon.__init__(self, n, k, frozen_bit_position, frozenbits)
     self.G = hf.get_Fn(n)