Main Content

Source Coding

Quantization, compression, and expansion source coding techniques

Apply source coding techniques to format signals according to representative partitions and specific codebook maps. The various source coding techniques apply quantization, compression, and expansion.

Functions

arithdecoDecode binary code by arithmetic decoding
arithencoEncode sequence of symbols by arithmetic encoding
compandSource coding mu-law or A-law compressor or expander
dpcmdecoDecode using differential pulse code modulation
dpcmencoEncode using differential pulse code modulation
dpcmoptOptimize differential pulse code modulation parameters
huffmandecoDecode binary code by Huffman decoding
huffmandictGenerate Huffman code dictionary for source with known probability model
huffmanencoEncode sequence of symbols by Huffman encoding
lloydsOptimize quantization parameters using Lloyd algorithm
quantizProduce quantization index and quantized output value

Objects

comm.DifferentialDecoderDecode binary signal using differential decoding
comm.DifferentialEncoderEncode binary signal using differential coding

Blocks

A-Law CompressorImplement A-law compressor for source coding
A-Law ExpanderImplement A-law expander for source coding
Differential DecoderDecode binary signal using differential coding
Differential EncoderEncode binary signal using differential coding
Mu-Law CompressorImplement µ-law compressor for source coding
Mu-Law ExpanderImplement µ-law expander for source coding
Quantizing DecoderDecode quantization index according to codebook
Quantizing EncoderQuantize signal using partition and codebook

Topics

  • Quantization

    Quantize data to improve signal sampling efficiency in communications systems.

  • Differential Pulse Code Modulation

    Use DPCM as a predictive quantization method.

  • Compand a Signal

    Make µ-law or A-law compressor and expander calculations.

  • Huffman Coding

    Compress data so that no codeword is a prefix of any other codeword in the dictionary by using Huffman coding and decoding.

  • Arithmetic Coding

    Compress data from sources with a small alphabet by using arithmetic coding and decoding.