| Purpose |
| Creates and initializes the variables required for the Reduced Complexity Partitioned Block Frequency Domain Adaptive Filter (RCPBFDAF) algorithm. |
| Syntax |
[W,x,d,e,y,Px,X,ci,w]=init_rcpbfdaf(L,M,P)
[W,x,d,e,y,Px,X,ci,w]=init_rcpbfdaf(L,M,P,W0,X0,d0)
|
| Description |
The variables of the RCPBFDAF are similar to those of the BFDAF (see Fig. 4.2) and are summarized below . The FFT length B is internally calculated using the equation
Input Parameters [Size]:: L : block length (M = g * L) M : filter partition length, must be int multiple of L P : number of partitions (total filter length = P*M) W0 : initial matrix of filter coefficients [B x P] X0 : initial matrix of f-domain input signal [B x G] d0 : initial desired response vector [L x 1] Output parameters [default]:: W : initialized matrix of filter coef. [zeros] x : initialized overlap-save input buffer d : initialized desired response [white noise] e : initialized error vector in t-domain y : initialized filter output in t-domain Px : initialized estimate of the input power (Bx1) X : initialized input samples matrix [zeros] ci : index of the next partition to be constrained w : time domain filter coefficients vector |
| Example |
P = 16; % partitions L = 32; % Block length M = L*4; % 2048-long filter B = 2^nextpow2(L+M-1); % FFT length G = (P-1)*4+1; % depth of X W0 = zeros(B,P); % initial filter coef. X0 = rand(B,G); % initial input buffer d0 = rand(L,1); % desired block % Create and initialize a RCPBFDAF FIR filter [W,x,d,e,y,Px,X,ci,w]=init_rcpbfdaf(L,M,P,W0,X0,d0); |
| Remarks |
|
| See Also |
| ASPTRCPBFDAF, ECHO_ RCPBFDAF. |