Linear Quantization

 f(x)=Round(xaba(N1)) f1(n)a+nN1(ba)\begin{align*}
&\text{ }\: 
f(x) = \text{Round}\left( \frac{x - a}{b - a} \cdot (N - 1) \right)
\\
&\text{ }\: 
f^{-1}(n) \approx a + \frac{n}{N - 1} \cdot (b - a)
\end{align*}