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

« back to all changes in this revision

Viewing changes to inst/private/test_wfbt2filterbank.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:
6
6
%  Usage: test_wfbt2filterbank()
7
7
%
8
8
%@end verbatim
9
 
%@strong{Url}: @url{http://ltfat.sourceforge.net/doc/testing/test_wfbt2filterbank.php}
 
9
%@strong{Url}: @url{http://ltfat.github.io/doc/testing/test_wfbt2filterbank.html}
10
10
%@end deftypefn
11
11
 
12
 
% Copyright (C) 2005-2014 Peter L. Soendergaard <soender@users.sourceforge.net>.
13
 
% This file is part of LTFAT version 2.0.1
 
12
% Copyright (C) 2005-2015 Peter L. Soendergaard <peter@sonderport.dk>.
 
13
% This file is part of LTFAT version 2.1.0
14
14
%
15
15
% This program is free software: you can redistribute it and/or modify
16
16
% it under the terms of the GNU General Public License as published by
159
159
      
160
160
      if strcmp(testWhat,'wfbt') 
161
161
          urefc = uwfbt(f,gttmp,scaling{scIdx});
162
 
          [g,a] = wfbt2filterbank(gttmp);
 
162
          [g,a] = wfbt2filterbank(gttmp,scaling{scIdx});
163
163
      elseif strcmp(testWhat,'wpfbt') 
164
164
          urefc = uwpfbt(f,gttmp,scaling{scIdx});
165
 
          [g,a] = wpfbt2filterbank(gttmp);
 
165
          [g,a] = wpfbt2filterbank(gttmp,scaling{scIdx});
166
166
      end
167
 
      g = comp_filterbankscale(g,a,scaling{scIdx});
 
167
      
168
168
 
169
169
      
170
 
      uc = ufilterbank(f,g,1,'crossover',crossoverval);
 
170
      uc = ufilterbank(f,g,a,'crossover',crossoverval);
171
171
      
172
172
      err = norm(uc-urefc);
173
173
      [test_failed,fail]=ltfatdiditfail(err,test_failed);
207
207
end
208
208
end
209
209
end
 
210