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

📄 ltermprediction.m

📁 wav声音文件的通过多脉冲激励编码器
💻 M
字号:
function [v,bvalue]=LTermPrediction(errorpre,error,fr,frmsize,pitch_marks)

v=zeros(1,frmsize);%long term prediction error
%caculate b* in long term prediction
bnumerator=0;
bdenominator=0;
for i=1:frmsize
    if (i-pitch_marks)<1
        bnumerator =bnumerator+errorpre(i)*error(frmsize+(i-pitch_marks));
        bdenominator=bdenominator+errorpre(frmsize+(i-pitch_marks))^2;
    else
        bnumerator =bnumerator+error(i)*error(i-pitch_marks);
        bdenominator=bdenominator+error(i-pitch_marks)^2;
    end
end
bvalue=bnumerator/bdenominator;
for i=1:frmsize
    if (i-pitch_marks)<1 
        v(i)=error(i)-bvalue*error(frmsize+(i-pitch_marks));
    else
        v(i)=error(i)-bvalue*error(i-pitch_marks);
    end
end
    


            
            
    
    

⌨️ 快捷键说明

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