Diff of /wavelets/wfbtclength.m [000000] .. [586fe9]  Maximize  Restore

Switch to unified view

a b/wavelets/wfbtclength.m
1
function [Lc,L]=wfbtclength(Ls,wt,varargin);
2
%WFBTLENGTH  WFBT subband lengthf from a signal length
3
%   Usage: L=wfbtlength(Ls,wt);
4
%          L=wfbtlength(Ls,wt,...);
5
%
6
%   `wfbtlength(Ls,wt)` returns the length of a Wavelet system that is long
7
%   enough to expand a signal of length *Ls*. Please see the help on
8
%   |wfbt| for an explanation of the parameter *wt*.
9
%
10
%   If the returned length is longer than the signal length, the signal
11
%   will be zero-padded by |wfbt| to length *L*.
12
%
13
%   See also: wfbt, fwt
14
15
16
definput.import = {'fwt'};
17
[flags,kv]=ltfatarghelper({},definput,varargin);
18
19
% Initialize the wavelet filters structure
20
wt = wfbtinit(wt);
21
22
a = treeSub(wt);
23
24
if(flags.do_per)
25
   blocksize=max(a);
26
   L = ceil(Ls/blocksize)*blocksize;
27
   Lc = L./a;
28
else
29
   error('%s:FIXME: Not implemented yet.',upper(mfilename));
30
   L = Ls;
31
end
32
33

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks