Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自适应算法的疑问 #2

Open
Dongyuu-S opened this issue Aug 8, 2020 · 0 comments
Open

自适应算法的疑问 #2

Dongyuu-S opened this issue Aug 8, 2020 · 0 comments

Comments

@Dongyuu-S
Copy link

问题一:以下代码后续没有用到,但从注释来看,变量u和u1又是很重要,后边必须要使用的参量。这个矛盾怎么解释?
u = zeros(1,ITER); % Initialize input of adaptive filter to zero
u1 = zeros(1,ITER); % Initialize input of feedforward path to zero

if n > (delay+1)
u(n) = S.ff(end)*en(n-delay-1);
else
u(n) = 0;
end

问题二:自适应滤波器的输入信号是un,也就是系统纯净的语音信号,这与作者给出的系统逻辑图、问题一中定义的参量是不相符合的。
for k = 1:1:M-1; % Updates of tapped-delay line of adaptive filter
fftap(M-k+1) = fftap(M-k);
end
fftap(1) = un(n);
yn(n) = w'*fftap'; % Compute output by inner product
en(n) = un(n)+yfb(n)-yn(n); % Compute error signal
w = w + (mu*en(n))*fftap'; % LMS algorithm

最后希望作者能够贴出书中原始的代码>~<。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant