From bbefaa742a75f328ddeb197bc9c438b8cfe4ae94 Mon Sep 17 00:00:00 2001 From: dshuman1 Date: Fri, 12 Jan 2018 16:13:41 -0600 Subject: [PATCH] Changed gsp_filter_analysis to allow other parameters to be passed through to gsp_cheb_coeffs --- filters/gsp_filter_analysis.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/filters/gsp_filter_analysis.m b/filters/gsp_filter_analysis.m index b4993d5..98bd978 100644 --- a/filters/gsp_filter_analysis.m +++ b/filters/gsp_filter_analysis.m @@ -58,10 +58,12 @@ % Default: if the Fourier matrix is present: 'exact' otherwise 'cheby' % * *param.order* : Degree of the Chebyshev approximation % (default=30). +% * *param.grid_order* : grid order used to compute quadrature +% (default is param.order+1) % * *param.verbose* : Verbosity level (0 no log - 1 display warnings) -% (default 1). +% (default 1) % -% See also: gsp_filter_synthesis gsp_filter_inverse +% See also: gsp_filter_synthesis gsp_filter_inverse % % References: hammond2011wavelets % @@ -114,6 +116,7 @@ end if ~isfield(param,'order'); param.order = 30; end +if ~isfield(param,'grid_order'); param.grid_order = param.order+1; end if ~isfield(param,'verbose'); param.verbose = 1; end if isfield(param, 'cheb_order') @@ -174,7 +177,7 @@ cheb_coeffs = gsp_cheby_coeff(G, fi,... - param.order, param.order +1); + param.order, param.grid_order, param); c = gsp_cheby_op(G, cheb_coeffs, s); % case 'cheby_p' %