Description |
%function [ALEstruct]=ale(f,fs,munoise,sigmanise,mulms,ncoef,dur)
%function to perform adaptive line enhancement using LMS algorithm and an adaptive FIR filter
%ALE concept enhances a single tone signal (frequency f) affected by white noise (mu,sigma)
%REQUIRES FILTER DESIGN TOOLBOX, SIGNAL PROCESSING TOOLBOX
%INPUTS
%f: frequency of sinusoid
%fs: sampling signal of sinusoid (At least 2f)
%munoise, sigma: mean and variance of white noise
%mulms, value of the step parameter in the LMS algorithm
%ncoef: number of coefficients of the FIR filter
%dur: simulation time in number of signal periods
%OUTPUTS
%ALEstruct: a structure with fields
% .weights: the filter's weights after finishing iterations
% .error : evolution of error signal during simulation
% .output: output of the filter
% .signal: a copy of the input signal
% .desired: a copy of the desired signal in the LMS adaptive scheme. Note: e(n)=output(n)-d(n)
% .mse .mmselms .emselms .meanwlms .pmselms: results of predicted and simulated filter behavior in terms of MSE, minimum MSE, excess
% MSE, coefficient vector means and predicted learning curve (pmselms). |