Shannon.Encode (Shannon v0.0.2)

Copy Markdown

Contains functions for various encoders for improving signal transmissions in a noisy channel.

Summary

Functions

Simple repetition encoder that by default will use 3 bits to encode a single bit value.

Functions

repetition(values, n \\ 3)

Simple repetition encoder that by default will use 3 bits to encode a single bit value.

Example

iex> Shannon.Encode.repetition([0]) [0, 0, 0]