www.pudn.com > 666bandelets_toolbox.zip > perform_quantization.m


function [y, nbr_bits, nbr_bits_tot, y_quant] = perform_quantization(x, T) 
 
% perform_quantization - perform a nearly uniform quantization of the signal. 
% 
%   [y, nbr_bits, nbr_bits_tot, y_quant] = perform_quantization(x, T); 
% 
%   The quantizer is defined by y=Q_T(x) where: 
%       Q_T(x) = 0    if  |x|