Skip to content
Snippets Groups Projects
Commit 917b91f5 authored by leprob001's avatar leprob001
Browse files

Bugfix, on filtering A matrix, the float offset and drift column is now being multiplied by -1.

parent 71a6f29e
No related branches found
No related tags found
No related merge requests found
164
\ No newline at end of file
165
\ No newline at end of file
......@@ -8,7 +8,7 @@ A = pA;
%% Initialize constants
driftColumnName = 'EmpiricalDrift';
offsetColumnName = 'EmpiricalOffset';
floatRowName = 'Float';
floatColumnName = 'Float';
offsetSuffix = 'Offset';
%% Add offset column for every soundsource
......@@ -16,7 +16,7 @@ tmpNames = A.Properties.VariableNames( ...
~strcmp(A.Properties.VariableNames, 'Distances') ...
);
for i = 1:length(tmpNames)
if strcmp(tmpNames{i}, floatRowName)
if strcmp(tmpNames{i}, floatColumnName)
values = ones(size(A, 1), 1);
else
rowIndices = A{:, tmpNames{i}} > 0;
......@@ -32,6 +32,11 @@ for i = 1:length(tmpNames)
end
clear tmpNames;
%% Adjust float columns
A{:, floatColumnName} = A{:, floatColumnName} * -1;
A{:, [floatColumnName offsetSuffix]} = A{:, [floatColumnName offsetSuffix]} * -1;
%% Save unfiltered matrix
unfilteredA = A;
%% Process soundsources and float
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment