Matlab Program For Uniform Quantization Encoding Failure
Description
At the receiver side we employ sampling, quantizing, encoding. Generally the two process named as encoding and quantizing are done in the same circuit known as analog to digital converter i.e. A to D converter. The operations done in the receiver circuit are regeneration of the received signal, decoder,.
y = uencode(u,n)
quantizes the entries ina multidimensional array of floating-point numbers u
andencodes them as integers using 2n-levelquantization. n
mustbe an integer between 2 and 32 (inclusive). Inputs can be real orcomplex, double- or single-precision. The output y and the input u
arearrays of the same size. The elements of the output y are unsignedintegers with magnitudes in the range [0, 2n-1].Elements of the input u
outside of the range [-1,1]
aretreated as overflows and are saturated.
For entries in the input
u
thatare less than -1, the value of the output ofuencode
is0.For entries in the input
u
thatare greater than 1, the value of the output ofuencode
is2n-1.
y = uencode(u,n,v)
allowsthe input u
to have entries with floating-pointvalues in the range [-v,v]
before saturating them(the default value for v
is 1).Elements of the input u
outside of the range [-v,v]
aretreated as overflows and are saturated:
For input entries less than -
v
,the value of the output ofuencode
is 0.For input entries greater than
v
,the value of the output ofuencode
is 2n – 1.
Matlab Program For Uniform Quantization Encoding Failure Definition
y = uencode(u,n,v,
mapsentries in a multidimensional array of floating-point numbers 'SignFlag'
)u
whoseentries have values in the range [-v,v
] to an integeroutput y
. Input entries outside this range aresaturated. The integer type of the output depends on the number ofquantization levels 2n andthe value of 'SignFlag'
, which can be oneof the following:
'signed'
: Outputs are signed integerswith magnitudes in the range [-2n/2, (2n/2) – 1].'unsigned'
(default): Outputs areunsigned integers with magnitudes in the range [0, 2n – 1].
The output data types are optimized for the number of bits asshown in the table below.
n | Unsigned Integer | Signed Integer |
---|---|---|
2 to 8 | ||
9 to 16 | ||
17 to 32 |