Commit 8f7e77eb authored by Fredrik Bagge Carlsson's avatar Fredrik Bagge Carlsson
Browse files

removed crap

parent a0ee462f
......@@ -68,23 +68,7 @@ addpath('./ekfukf-toolbox');
figure(1)
signal = ... % get signal here
% Get signal length and number of frames
nSamples = size(signal, 1);
nFrames = floor(nSamples / (simParams.frameSize * fsHz));
% Initialize the auditory front-end
simParams.sampleRate = fsHz;
simParams.signalDuration = nSamples / fsHz;
[dataObj, managerObj] = initializeParameters(simParams);
% Get localization measurements
managerObj.processSignal(signal);
azimuthDistribution = ...
squeeze(dataObj.azimuthDistribution{1}.Data(:));
% Use -90 to align coordinate system
measuredLocations = argmax(azimuthDistribution, 2) - 90;
N = length(measuredLocations);
N = 100;
% Initialize posterior mean and covariance
posteriorMean = zeros(size(A, 1), N);
......@@ -107,6 +91,7 @@ for l = 1:N
posteriorMean(:, l) = x;
posteriorCovariance(:, :, l) = P;
pause(0.5)
end
% Plot measurements
......
Markdown is supported
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