apply_LOT

PURPOSE ^

Input

SYNOPSIS ^

function alpha = apply_LOT(x,varargin)

DESCRIPTION ^

 Input
   x -- input signal 
   L -- length of the window
   eta -- length of overlapping window

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function alpha = apply_LOT(x,varargin)
0002 
0003 % Input
0004 %   x -- input signal
0005 %   L -- length of the window
0006 %   eta -- length of overlapping window
0007 
0008 N = length(x);
0009 
0010 % length of the window
0011 if nargin > 1; L = varargin{1}; else L = 128; end
0012 % rollover/overlap
0013 if nargin > 2; eta = varargin{2}; else eta = 1/2*L; end
0014 
0015 if N < L+2*eta
0016     error('Length of the signal is smaller than the LOT window.');
0017 end
0018 
0019 in_Psi = []; in_Psi.L = L; in_Psi.eta = eta; 
0020 Psi = create_LOT(in_Psi);
0021 
0022 alpha = [];
0023 tl = 0;
0024 for p = 1:floor((N-2*eta)/L)
0025     sigt = x(tl+1:tl+L+2*eta);
0026     alpha = [alpha; Psi'*sigt];
0027     tl = tl+L;
0028     %     fig(10); plot(alpha); drawnow;
0029 end

Generated on Mon 10-Jun-2013 23:03:23 by m2html © 2005