so I am a little bit confused about the formula of the step size in a uniform quantizer.
from what I have studied:
StepSize = $\displaystyle\frac{maxValue-minValue}{2^n}$, where n
is the number of bits.
so for example, if we have a signal that changes from (-6 to 6) and the number of bits is 3 bits (also suppose it's midrise).
so according to the formula:
StepSize = $\displaystyle\frac{6-(-6)}{2^3}$ = 1.5
so the possible values for a signal that it could take are:
-6, -4.5, -3, -1.5, 0, 1.5, 3, 4.5, 6
which are 9 levels not 8 so it needs 4 bits, not 3, also if it's a midrise signal then it shouldn't have a value at zero. so is there anything that I misses here?