Skip to content

Commit

Permalink
First release
Browse files Browse the repository at this point in the history
  • Loading branch information
just1nGH committed Oct 16, 2021
1 parent 1927843 commit e929686
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
Binary file added LDPC_decoder_help_doc.pdf
Binary file not shown.
Binary file added LDPC_endcoder_help_doc.pdf
Binary file not shown.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# 5G-NR-LDPC
5G NR LDPC MATLAB implementation

A good starting point is to run `example_run.m`

This implementation uses min-sum offset decoding algorithms, read `LDPC_decoder_help_doc.pdf` for detail.

Any questions, eamil juquan.justin.mao@gmail.com
4 changes: 2 additions & 2 deletions Source files/example_run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int main() {
void example_run_LDPC()
{
unsigned nMaxIter = 8; // number of decoders
int M = 4000; // code word length
int M = 1000; // code word length
double rate = 1.0 / 3; // code rate

unsigned K = unsigned(ceil(M * rate)); // information length
Expand All @@ -38,7 +38,7 @@ void example_run_LDPC()
normal_distribution<double> norm_dist(0, 1);

// Running parameters
vector<double> EsN0_dB = lin_space(-4, -3, 6);
vector<double> EsN0_dB = lin_space(-4, -2, 9);
vector<double> N0(EsN0_dB.size(), 0);
transform(EsN0_dB.begin(), EsN0_dB.end(), N0.begin(), [](const float& x) {return pow(10.0, -x / 10.0); });

Expand Down

0 comments on commit e929686

Please sign in to comment.