⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 perform_quantization.m

📁 该程序包为用MATLAB编写的一个实现小波变换的工具箱
💻 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|<T
%       Q_T(x) = sign(x) * ([x/T]+0.5)*T      where [.]=floor
%   (i.e. a nearly uniform quantizer with twice larger zero bin).
%
%   y is the quantified value
%   nbr_bit as same size as x and store the number of bits needed to code
%       each entry of x
%   nbr_bits_tot is just sum(nbr_bits_tot(:))
%   y_quant is the signed token representing each entry of y.
%
%   Copyright (c) 2004 Gabriel Peyr

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -