Skip to main content

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


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)

Uploaded Source

Built Distribution

Polar_codes_BEC-1.2.3-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page