Giter Site home page Giter Site logo

encoding's Introduction

Encoding library

Header-only C++11 library to encode pieces of data with tight control over their bit-level representation.

Stuff it allows:

  • Two's complement encoding/decoding.
  • Gray encoding/decoding.
  • Encoding/decoding of enumerations.
  • IEEE floating point number encoding/decoding.
  • Fixed point number encoding/decoding.
  • Encoding/decoding of any combination of the above into/from binary streams.

For unit tests, it uses Google C++ Testing Framework.

Its original intent was to be used for the genotype encoding for evolutionary algorithms. However, nothing constraints its use for other encoding needs.

encoding's People

Contributors

noe avatar

Stargazers

 avatar

Watchers

 avatar

encoding's Issues

Encapsulate use of boost::dynamic_bitset

Have boost::dynamic_bitset hidden, do not use it directly. Instead, identify the used functionality and create a new class that exposes corresponding methods, using boost::dynamic_bitset under the hoods.

The aim of this is a) to reduce the coupling with boost::dynamic_bitset, b) identify potential bugs due to misuse of boost::bitset (e.g. block-by-block append), c) study the actual needs in terms of bit manipulation so that we can find a proper replacement

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.