Commit 770f6ebd authored by Fredrik Bagge Carlsson's avatar Fredrik Bagge Carlsson
Browse files

bugfix

parent 70c31d32
...@@ -11,14 +11,21 @@ dt = chunks/fs; ...@@ -11,14 +11,21 @@ dt = chunks/fs;
%% Setup objects %% Setup objects
% Initialize localization models using braodband and subband settings % Initialize localization models using braodband and subband settings
dObj = dataObject([],fsHz,10,2);
% Window size in seconds
winSec = 20E-3;
% Lowest and highest center frequency in Hertz of the gammatone filterbank
fLowHz = 80;
fHighHz = 8000;
dObj = dataObject([],fs,10,2);
% Settings for subband approach % Settings for subband approach
par_sub = genParStruct('cc_bBroadband',0,'cc_wSizeSec',winSec,... par_sub = genParStruct('cc_bBroadband',0,'cc_wSizeSec',winSec,...
'cc_hSizeSec',winSec/2,'cc_maxDelaySec',1.25e-3,... 'cc_hSizeSec',winSec/2,'cc_maxDelaySec',1.25e-3,...
'fb_lowFreqHz',fLowHz,'fb_highFreqHz',fHighHz,... 'fb_lowFreqHz',fLowHz,'fb_highFreqHz',fHighHz,...
'fb_nERBs',1,'ihc_method','none',... 'fb_nERBs',1,'ihc_method','none',...
'loc_NSources',nSpeakers(hh)); 'loc_NSources',1);
% Initialize localization models using braodband and subband settings % Initialize localization models using braodband and subband settings
mObj = manager(dObj,'localization',par_sub); mObj = manager(dObj,'localization',par_sub);
...@@ -60,6 +67,7 @@ posteriorCovariance = zeros(size(A, 1), size(A, 1), N); ...@@ -60,6 +67,7 @@ posteriorCovariance = zeros(size(A, 1), size(A, 1), N);
% ======================================================= % =======================================================
% Main loop - Perform localization and tracking % Main loop - Perform localization and tracking
% ======================================================= % =======================================================
display('Entering main loop')
tic(); tic();
t_old = toc(); t_old = toc();
for l = 1:N for l = 1:N
...@@ -80,7 +88,7 @@ for l = 1:N ...@@ -80,7 +88,7 @@ for l = 1:N
posteriorMean(:, l) = x; posteriorMean(:, l) = x;
posteriorCovariance(:, :, l) = P; posteriorCovariance(:, :, l) = P;
pause(max(,0)) % pause(max(,0))
t_old = t_new; t_old = t_new;
end end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment