How can we perform inverse quantization of a quantized matrix?
4 ビュー (過去 30 日間)
古いコメントを表示
How will we write the code for inverse quantisation?
0 件のコメント
回答 (1 件)
John D'Errico
2017 年 7 月 18 日
編集済み: John D'Errico
2017 年 7 月 18 日
You cannot do so. Once a number has been quantized, essentially truncated to a shorter number of decimal places, you can NEVER recover the digits that have been dropped. Period. That is information that has been discarded, thrown away, into the bit bucket and forever lost.
Suppose I told you a number is 3, after quantization to an integer? Is there any possible method to know the values of ALL of the digits that were dropped in the quantization process? Surely if this is possible, then it is also possible to know all of the digits of pi, merely by telling you the quantized value is 3. How, for example, do you know that the original number was pi, and not sqrt(10)?
In the case of quantization, all that you know is the original value lies in the set of all values that could have been quantized into what you now have. Lacking any more information, you are done.
You cannot write code to do the impossible.
参考
カテゴリ
Help Center および File Exchange で Cast and Quantize Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!