lsp_expand.m

来自「VAD G729 for mobile phone」· M 代码 · 共 15 行

M
15
字号
function o=lsp_expand(l,gap)
%重新安排li
%l--quantinized LSP vectors
%gap--0.0012或0.0006
temp1=0;
temp2=0;
for i=2:length(l)
    if (l(i-1)-l(i)+gap)>0
        temp1=l(i-1);
        temp2=l(i);
        l(i-1)=(temp1+temp2-gap)/2;
        l(i)=(temp1+temp2+gap)/2;
    end
end
o=l;

⌨️ 快捷键说明

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