Git Product home page Git Product logo

ldpc's Introduction

LDPC

C++ project to handle LDPC messages in the MOVE-II project.

This repository contains:

  1. The core library
  2. (Optional) Unittests/ example applications (outdated)
  3. (Optional) Application to compute systematic generator matrices

Each part is installed by cmake. The entire project can be build at once with

cd ldpc
mkdir build && cd build
cmake ../
make make test
sudo make install

In order to include the generator matrix computation programm (which requires NTL), change the cmake command in the above procedure to cmake -DLIBLDPC_BUILD_GENERATOR=On ../.

Core library (libldpc)

The core library is a shared library that exports the two classes encoder and decoder. They can be included with #include <ldpc/encoder.h> and #include <ldpc/decoder.h>.

Example applications

The unittests in the tests folder serve as demonstrations how to use the library. As of now they contain hardcoded paths to parity matrix and generator matrices. In order to use them these paths need to be adopted.

The build of these examples can be enabled with the cmake option -DLIBLDPC_UNITTESTS=On. Afterwards they can be run from the build folder with make test.

Application to compute systematic generator matrix

The application ldpc_compute_generator computes a generator matrix from a given parity check matrix (in alist format). The application assumes that the code is a systematic code, where the input bits are send before the computed check bits.

This application depends on the NTL library, that has to be installed.

In order to generate the binary output file (*.gen) that is required by the ldpc library, the binary needs to be called with 3 arguments. The first argument is the path to the alist file defining the parity check matrix. The second argument is a path where an ASCII version of the computed generator matrix is written to. The third argument is the path where the *.gen file will be written to.

ldpc_compute_generator paritycheck_matrix.a generator.txt generator.gen

ldpc's People

Contributors

v1tzl1 avatar mondbaron avatar

Watchers

 avatar

Forkers

n6rfm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.