Vector quantizer codeword for given index value
The VectorQuantizerDecoder
object associates each input
index value with a codeword, a column vector of quantized output values defined in the
Codebook
property. Each column of the Codebook
property is a codeword. When you input multiple index values into this object, the object
outputs a matrix of quantized output vectors. This matrix is created by horizontally
concatenating the codeword vectors that correspond to each index value.
You can select to enter the code book values via the Codebook
property or as an input to the object.
To obtain the vector quantizer codeword for a given index value:
Create the dsp.VectorQuantizerDecoder
object and set its properties.
Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?.
creates a
vector quantizer decoder System object™, vqdec
= dsp.VectorQuantizerDecodervqdec
, that returns a vector quantizer codeword
corresponding to a given, zero-based index value.
returns a vector quantizer decoder, vqdec
= dsp.VectorQuantizerDecoder(Name,Value
)vqdec
, with each specified
property set to the specified value.
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)
This object implements the algorithm, inputs, and outputs described on the Vector Quantizer Decoder block reference page. The object properties correspond to the block parameters, except:
There is no object property that directly corresponds to the Action for
out of range index value block parameter. The object sets any index values
less than 0
to 0
and any index values greater than
or equal to N to N-1.