資源簡介
LMS算法,一種最常用的自適應(yīng)濾波算法,可用于回聲消除,抑制噪聲,改善語音質(zhì)量,此算法為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.
評論
共有 條評論