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

« back to all changes in this revision

Viewing changes to inst/wavelets/wfbtmanip/treeOutLen.m

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot, Rafael Laboissiere
  • Date: 2015-07-18 23:36:41 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20150718233641-jhuf3f551a3523qc
Tags: 2.1.0+dfsg-1
* Team upload.

[ Rafael Laboissiere ]
* Imported Upstream version 2.1.0+dfsg
* d/rules: Prevent unit testing on armhf and mips.
  This avoids FTBFS on theses architectures (see Bug#765545).
* Unit testing does not need X-window anymore
  + d/rules: Do not use xfvb-run to run the tests.
  + d/control: Drop xauth, xvfb, and gnuplot-nox from Build-Depends.
    Also, the versioned dependency on octave-pkg-dev is relaxed.
* Drop .jar file from upstream tarball, complying with the Debian Policy
  + d/copyright: Exclude file blockproc.jar
  + d/rules: Add get-orig-source target
  + d/watch: Mangle upstream version to cope with "+dfsg" tag
* Build blockproc.jar, which is deleted from the upstream tarball
  + d/rules: Add commands for building blockproc.jar
  + d/control: Build-depend on default-jdk
  + d/p/fix-path-of-included-makefile.patch: New patch
* Bump Standard-Versions to 3.9.6 (no changes needed)
* d/p/autoload-yes.patch: Remove patch (deprecated upstream)
* Bump Build-Depends on octave to >> 4.0.0~rc4-1 (for sndfile support)
* d/check.m: Avoid verbose output of unit tests
* d/watch: Add the repacksuffix option
* d/p/add-hardening-flags.patch: Drop patch (applied upstream)
* d/p/fix-path-of-included-makefile.patch: Drop patch (applied upstream)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
%-*- texinfo -*-
3
3
%@deftypefn {Function} treeOutLen
4
4
%@verbatim
5
 
%TREESUB
 
5
%TREEOUTLEN  Lengths of tree subbands
 
6
%   Usage:  Lc = treeOutLen(L,doNoExt,wt)
 
7
%
 
8
%   Input parameters:
 
9
%         L       : Input signal length.
 
10
%         doNoExt : Flag. Expansive = false, Nonexpansive=true  
 
11
%         wt      : Structure containing description of the filter tree.
 
12
%
 
13
%   Output parameters:
 
14
%         Lc : Subband lengths.
 
15
%
 
16
%   Lc = TREEOUTLEN(L,doNoExt,wt) returns lengths of tree subbands given
 
17
%   input signal length L and flag doNoExt. When true, the transform is
 
18
%   assumed to be non-expansive.
 
19
%   For definition of the structure see WFBINIT.
 
20
%
 
21
%
6
22
%@end verbatim
7
 
%@strong{Url}: @url{http://ltfat.sourceforge.net/doc/wavelets/wfbtmanip/treeOutLen.php}
 
23
%@strong{Url}: @url{http://ltfat.github.io/doc/wavelets/wfbtmanip/treeOutLen.html}
 
24
%@seealso{wfbtinit}
8
25
%@end deftypefn
9
26
 
10
 
% Copyright (C) 2005-2014 Peter L. Soendergaard <soender@users.sourceforge.net>.
11
 
% This file is part of LTFAT version 2.0.1
 
27
% Copyright (C) 2005-2015 Peter L. Soendergaard <peter@sonderport.dk>.
 
28
% This file is part of LTFAT version 2.1.0
12
29
%
13
30
% This program is free software: you can redistribute it and/or modify
14
31
% it under the terms of the GNU General Public License as published by
23
40
% You should have received a copy of the GNU General Public License
24
41
% along with this program.  If not, see <http://www.gnu.org/licenses/>.
25
42
 
26
 
% All nodes with at least one final output.
27
 
termN = find(nodesOutputsNo(1:numel(wt.nodes),wt)~=0);
28
 
% Range in filter outputs
29
 
outRange = nodesLocOutRange(termN,wt);
30
 
cRange = cell2mat(cellfun(@(rEl) rEl(:),nodesOutRange(termN,wt),...
 
43
 
 
44
 
 
45
[termN, rangeLoc, rangeOut] = treeBFranges(wt);
 
46
slice = ~cellfun(@isempty,rangeOut); % Limit to nodes with unconnected outputs
 
47
rangeOut=rangeOut(slice);
 
48
cRange = cell2mat(cellfun(@(rEl) rEl(:),rangeOut(:),...
31
49
                  'UniformOutput',0));
32
50
 
33
 
 
34
 
Lctmp = nodesOutLen(termN,L,outRange,doNoExt,wt);
 
51
Lctmp = nodesOutLen(termN(slice),L,rangeLoc(slice),doNoExt,wt);
35
52
Lc = zeros(size(Lctmp));
36
 
 
37
53
Lc(cRange) = Lctmp;
38
54
 
39
55