~ubuntu-branches/ubuntu/vivid/octave-ltfat/vivid-proposed

« back to all changes in this revision

Viewing changes to inst/wavelets/wfbtclength.m

  • Committer: Package Import Robot
  • Author(s): Rafael Laboissiere
  • Date: 2014-10-09 13:58:00 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20141009135800-5kw1gvovmqh34bmm
Tags: 2.0.1-1
* Imported Upstream version 2.0.1
* d/p/autoload-yes.patch: Refresh patch
* d/p/add-subdirs-to-loadpath.patch: Drop patch (fixed upstream)
* d/check.m: Use the upstream unit testing script
* d/rules: Fix permission of all *.m files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
function [Lc,L]=wfbtclength(Ls,wt,varargin);
 
1
function [Lc,L]=wfbtclength(Ls,wt,varargin)
2
2
%-*- texinfo -*-
3
3
%@deftypefn {Function} wfbtclength
4
4
%@verbatim
5
 
%WFBTLENGTH  WFBT subband lengthf from a signal length
6
 
%   Usage: L=wfbtlength(Ls,wt);
7
 
%          L=wfbtlength(Ls,wt,...);
8
 
%
9
 
%   wfbtlength(Ls,wt) returns the length of a Wavelet system that is long
10
 
%   enough to expand a signal of length Ls. Please see the help on
11
 
%   WFBT for an explanation of the parameter wt.
12
 
%
13
 
%   If the returned length is longer than the signal length, the signal
14
 
%   will be zero-padded by WFBT to length L.
 
5
%WFBTCLENGTH  WFBT subband lengths from a signal length
 
6
%   Usage: Lc=wfbtclength(Ls,wt);
 
7
%          [Lc,L]=wfbtclength(...);
 
8
%
 
9
%   Lc=WFBTCLENGTH(Ls,wt) returns the lengths of coefficient subbands 
 
10
%   obtained from WFBT for a signal of length Ls. Please see the help 
 
11
%   on WFBT for an explanation of the parameters wt. 
 
12
%
 
13
%   [Lc,L]=WFBTCLENGTH(...) additionally returns the next legal length 
 
14
%   of the input signal for the given extension type.
 
15
%
 
16
%   The function support the same boundary-handling flags as the FWT
 
17
%   does.
15
18
%
16
19
%@end verbatim
17
20
%@strong{Url}: @url{http://ltfat.sourceforge.net/doc/wavelets/wfbtclength.php}
18
 
%@seealso{wfbt, fwt}
 
21
%@seealso{wfbt, wfbtlength}
19
22
%@end deftypefn
20
23
 
21
24
% Copyright (C) 2005-2014 Peter L. Soendergaard <soender@users.sourceforge.net>.
22
 
% This file is part of LTFAT version 1.4.4
 
25
% This file is part of LTFAT version 2.0.1
23
26
%
24
27
% This program is free software: you can redistribute it and/or modify
25
28
% it under the terms of the GNU General Public License as published by
34
37
% You should have received a copy of the GNU General Public License
35
38
% along with this program.  If not, see <http://www.gnu.org/licenses/>.
36
39
 
 
40
% AUTHOR: Zdenek Prusa
 
41
 
 
42
complainif_notposint(Ls,'Ls','WFBTCLENGTH');
37
43
 
38
44
definput.import = {'fwt'};
39
45
[flags,kv]=ltfatarghelper({},definput,varargin);
42
48
wt = wfbtinit(wt);
43
49
 
44
50
 
45
 
 
46
51
if(flags.do_per)
47
52
   a = treeSub(wt);
48
53
   L = filterbanklength(Ls,a);