Convert each index value into quantized output value
The dsp.ScalarQuantizerDecoder
object converts each index value into a
quantized output value. The specified codebook defines the set of all possible quantized
output values or codewords. Input index values less than 0 are set to 0 and index values
greater N – 1 are set to N – 1. N is
the length of the codebook vector.
To convert an index value into a quantized output value:
Create the dsp.ScalarQuantizerDecoder
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?.
returns a
scalar quantizer decoder System object™, sqdec
= dsp.ScalarQuantizerDecodersqdec
, that transforms zero-based input
index values into quantized output values.
returns a scalar quantizer decoder object, sqdec
= dsp.ScalarQuantizerDecoder(Name,Value
)sqdec
, 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 Scalar 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.