Package: dsp
Vector quantizer codeword for given index value
The VectorQuantizerDecoder
object returns
the vector quantizer codeword for a given index value. Each column
of the Codebook
property is a codeword.
To obtain the vector quantizer codeword for a given index value:
Define and set up your vector quantizer decoder. See Construction.
Call step
to get the vector quantizer
codeword according to the properties of dsp.VectorQuantizerDecoder
.
The behavior of step
is specific to each object in
the toolbox.
Note:
Starting in R2016b, instead of using the |
H = dsp.VectorQuantizerDecoder
creates
a vector quantizer decoder System object, H
,
that returns a vector quantizer codeword corresponding to a given,
zero-based index value.
H = dsp.VectorQuantizerDecoder('
returns
a vector quantizer decoder, PropertyName
',PropertyValue
,...)H
, with each specified
property set to the specified value.
|
Source of codebook values Specify the codebook source as The default is |
|
codebook Specify quantized output values as a k-by-N matrix,
where and .
Each column of the codebook matrix is a codeword, and each codeword
corresponds to an index value. This property applies when you set
the This property is tunable. |
|
Data type of codebook and quantized output Specify the data type of the codebook and quantized output values
as: |
clone | Create vector quantizer decoder object with same property values |
getNumInputs | Number of expected inputs to step method |
getNumOutputs | Number of outputs of step method |
isLocked | Locked status for input attributes and nontunable properties |
release | Allow property value and input characteristics changes |
step | Perform vector quantization decoding |
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. |