Skip to content
Snippets Groups Projects
Commit 29076e74 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Remove default BWchan (not needed). Added default coeff_q_max.

parent 3f2789c8
No related branches found
No related tags found
No related merge requests found
......@@ -25,6 +25,9 @@
% coefficients dependent on:
%
% config.hp_factor : = 1, is initial or default value for BWchan
% With config.hp_factor the BWchan can be set relative to fchan = 1/N.
% Default BWchan = config.hp_factor/N = 1/N = fchan.
%
% config.hp_adjust :
% when true then enable automatic channel half power bandwidth
% adjustment of config.hp_factor by iteration until the
......@@ -59,7 +62,7 @@
function coeff = pfir_coeff_adjust(N, L, BWchan, r_pass, r_stop, nof_bits, config, coeff_q_max)
% Default options
if ~exist('BWchan', 'var'); BWchan = config.hp_factor/N; end; % default set BWchan relative to fchan via config.hp_factor
if ~exist('coeff_q_max', 'var'); coeff_q_max = 2^(nof_bits-1)-1; end; % the quantization maps h_fir_max to coeff_q_max
while true
if config.hp_adjust==false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment