Skip to content

Commit

Permalink
Removed bugs in PSOt integration
Browse files Browse the repository at this point in the history
  • Loading branch information
GallVp committed Oct 6, 2019
1 parent dc85aaf commit 7fbaf66
Show file tree
Hide file tree
Showing 7 changed files with 550 additions and 457 deletions.
12 changes: 11 additions & 1 deletion emgEventsDetectTool.m
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,18 @@ function autoFind(~, ~)
end

function autoTune(~, ~)

dlgOpts.Interpreter='tex';
x = inputdlg({'Randomise parameters [Y:1, N:0]'},...
'nOptim', [1 50], {'0'}, dlgOpts);
if(isempty(x))
return;
end
answer = x;
isRandomParams = str2double(answer{1});

paramsVector = tuneDetectionParams(vars.channelStream(:, vars.channelNum), vars.fs,...
vars.detectionParams(:, vars.channelNum),...
isRandomParams, vars.detectionParams(:, vars.channelNum),...
vars.options.paramLowerBounds, vars.options.paramUpperBounds,...
vars.detectionCellarray{vars.channelNum}{end, vars.ONSETS_COLUMN_NUM}, vars.detectionCellarray{vars.channelNum}{end, vars.OFFSETS_COLUMN_NUM},...
vars.options.detectionAlgo);
Expand Down
Loading

0 comments on commit 7fbaf66

Please sign in to comment.