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

« back to all changes in this revision

Viewing changes to inst/wavelets/wfilt_coif.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:
27
27
%     
28
28
%     
29
29
%@end verbatim
30
 
%@strong{Url}: @url{http://ltfat.sourceforge.net/doc/wavelets/wfilt_coif.php}
 
30
%@strong{Url}: @url{http://ltfat.github.io/doc/wavelets/wfilt_coif.html}
31
31
%@end deftypefn
32
32
 
33
 
% Copyright (C) 2005-2014 Peter L. Soendergaard <soender@users.sourceforge.net>.
34
 
% This file is part of LTFAT version 2.0.1
 
33
% Copyright (C) 2005-2015 Peter L. Soendergaard <peter@sonderport.dk>.
 
34
% This file is part of LTFAT version 2.1.0
35
35
%
36
36
% This program is free software: you can redistribute it and/or modify
37
37
% it under the terms of the GNU General Public License as published by
61
61
              0.238929728471
62
62
             -0.051429728471
63
63
            ];
64
 
       d = 3;
 
64
       d = [-3,-3];
65
65
    case 2 
66
66
       hlp = [
67
67
             -0.000509505399
77
77
             -0.029320137980
78
78
              0.011587596739           
79
79
             ];
80
 
       d = 7;
 
80
       d = [-7,-5]; 
81
81
    case 3 
82
82
       hlp = [
83
83
             -0.000024465734
99
99
              0.005503126709
100
100
             -0.002682418671   
101
101
             ];
102
 
       d= 11;
 
102
       d= [-11,-7];
103
103
    case 4 
104
104
       hlp = [
105
105
             -0.000001262175
127
127
             -0.001152224852
128
128
              0.000630961046   
129
129
             ];
130
 
       d= 15;
 
130
       d= [-15,-9];
131
131
    case 5 
132
132
       hlp = [
133
133
             -0.0000000673
161
161
              0.0002535612
162
162
             -0.0001499638    
163
163
             ];
164
 
       d= 19;
 
164
       d= [-19,-11];
165
165
  otherwise
166
166
        error('%s: No such COIFLET filters.',upper(mfilename)); 
167
167
 
172
172
harr = [hlp, (-1).^(0:size(hlp,1)-1).'.*flipud(hlp)];
173
173
 
174
174
h=mat2cell(harr,size(harr,1),ones(1,size(harr,2)));
175
 
h=cellfun(@(hEl) struct('h',hEl(:),'offset',-d),h,'UniformOutput',0);
 
175
h=cellfun(@(hEl,dEl) struct('h',hEl(:),'offset',dEl),h,num2cell(d),...
 
176
          'UniformOutput',0);
176
177
 
177
178
g = h;
178
179