Polar_codes_BEC
Project description
POLAR CODES ANLYSIS IN BINARY EREASURE CHANNEL
A demo library for polar codes in BEC about publishing librairies
installation
pip install Polar_codes_BEC
GET STARTED
the effect of polar codes in BEC
from Polar_codes_BEC import Polar_bec
# this function init variabls
Polar_bec.__init__(0)
# p is the ereasure probability
p=0.5
# n is the polar code length
n=4
#result
print('the new erasure probability values is',Polar_bec.BEC(p,n))
Simulation & Plotting
A function to simulate a defined polar code in BEC,
#this function help users to enter values
(p,n)=Polar_bec.input_p_n(0)
#p=0.7
#n=8
Polar_bec.BEC_graph(p,n)
The simulation will show the polar code result for example:
Please enter the ereasure probability:
0.5
the ereasure probability is 0.5
Please enter the code length:
8
the code length is 8
[0.00390625, 0.12109375, 0.19140625, 0.68359375, 0.31640625, 0.80859375, 0.87890625, 0.99609375]
after polarization we get 4 of bad channels : [0.68359375, 0.80859375, 0.87890625, 0.99609375]
after polarization we get 4 of good channels : [0.00390625, 0.12109375, 0.19140625, 0.31640625]
Graphical interface
An example of GUI to plot a specified polar code
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Polar_codes_BEC-1.2.3.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for Polar_codes_BEC-1.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2822c523dd4c3fae215555fb10631d4e0fa0a983d7701fb712437b82615d7725 |
|
MD5 | 6a02e683d5e00d79f8062576f7bd18a1 |
|
BLAKE2b-256 | c24671608573fbfd4c92b157126b20ffbeb1b306ae48b8ed757e234f532e3680 |