资源简介
LMS算法,一种最常用的自适应滤波算法,可用于回声消除,抑制噪声,改善语音质量,此算法为MATLAB例程,有各种形式的算法,非常实用
代码片段和文件信息
function [outputVectorerrorVector coefficientVector] = LMS(desiredinputS)
% LMS.m
% Implements the Complex LMS algorithm for COMPLEX valued data.
% (Algorithm 3.2 - book: Adaptive Filtering: Algorithms and Practical
% Implementation Diniz)
%
% Syntax:
% [outputVectorerrorVectorcoefficientVector] = LMS(desiredinputS)
%
% Input Arguments:
% . desired : Desired signal. (ROW vector)
% . input : Signal fed into the adaptive filter. (ROW vector)
% . S : Structure with the following fields
% - step : Convergence (relaxation) factor.
% - filterOrderNo : Order of the FIR filter.
评论
共有 条评论