Quantizing Encoder - Quantize signal using partition and codebook

Library

Source Coding

Description

The Quantizing Encoder block quantizes the input signal according to the Partition vector and encodes the input signal according to the Codebook vector. The input signal can be either a scalar, a vector, or a matrix. This block processes each vector element independently.

The first output is the quantization index. The second output is the quantized signal. The values for the quantized signal are taken from the Codebook vector.

The Quantization partition parameter, P, is a real vector of length n whose entries are in strictly ascending order. The quantization index (second output signal value) corresponding to an input value of x is

The Quantization codebook parameter, whose length is n+1, prescribes a value for each partition in the quantization. The first element of Quantization codebook is the value for the interval between negative infinity and the first element of P. The second output signal from this block contains the quantization of the input signal based on the quantization indices and prescribed values.

You can use the function lloyds in Communications Toolbox with a representative sample of your data as training data, to obtain appropriate partition and codebook parameters.

Dialog Box

Quantization partition

The vector of endpoints of the partition intervals.

Quantization codebook

The vector of output values assigned to each partition.

Pair Block

Quantizing Decoder

See Also

Scalar Quantizer (Signal Processing Blockset™ documentation), lloyds (Communications Toolbox™ documentation)

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS