Skip to content

Commit 8d477ec

Browse files
authored
Merge pull request #7 from dshuman1/gsp_filter_analysis_update
Updated gsp_filter_analysis to allow other parameters to get passed through to gsp_cheb_coeffs
2 parents e172da0 + bbefaa7 commit 8d477ec

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

filters/gsp_filter_analysis.m

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,12 @@
5858
% Default: if the Fourier matrix is present: 'exact' otherwise 'cheby'
5959
% * *param.order* : Degree of the Chebyshev approximation
6060
% (default=30).
61+
% * *param.grid_order* : grid order used to compute quadrature
62+
% (default is param.order+1)
6163
% * *param.verbose* : Verbosity level (0 no log - 1 display warnings)
62-
% (default 1).
64+
% (default 1)
6365
%
64-
% See also: gsp_filter_synthesis gsp_filter_inverse
66+
% See also: gsp_filter_synthesis gsp_filter_inverse
6567
%
6668
% References: hammond2011wavelets
6769
%
@@ -114,6 +116,7 @@
114116
end
115117

116118
if ~isfield(param,'order'); param.order = 30; end
119+
if ~isfield(param,'grid_order'); param.grid_order = param.order+1; end
117120
if ~isfield(param,'verbose'); param.verbose = 1; end
118121

119122
if isfield(param, 'cheb_order')
@@ -174,7 +177,7 @@
174177

175178

176179
cheb_coeffs = gsp_cheby_coeff(G, fi,...
177-
param.order, param.order +1);
180+
param.order, param.grid_order, param);
178181
c = gsp_cheby_op(G, cheb_coeffs, s);
179182
% case 'cheby_p'
180183
%

0 commit comments

Comments
 (0)