Skip to content

Commit

Permalink
switched to nanmean
Browse files Browse the repository at this point in the history
  • Loading branch information
lrkrol committed Dec 9, 2022
1 parent 42118b5 commit c469ba7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion leadfield/lf_add_atlas_frommni2atlas.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
% Neuroadaptive Human-Computer Interaction
% Brandenburg University of Technology

% 2022-12-09 lrk
% - Switched to nanmean of confidence also in finalconsole output
% 2022-11-25 lrk
% - Preallocated variables for efficiency
% 2022-11-17 lrk
Expand Down Expand Up @@ -147,6 +149,6 @@
leadfield.atlas(currentregionidx) = atlas;
delete(w);

fprintf('Done.\nAtlas: %s\nAverage confidence: %.1f%%\n%d unkowns (%3.1f%%)\n', atlasnames{atlasselector}, mean(confidence), unknowns, unknowns/numsources*100);
fprintf('Done.\nAtlas: %s\nAverage confidence: %.1f%%\n%d unkowns (%3.1f%%)\n', atlasnames{atlasselector}, nanmean(confidence), unknowns, unknowns/numsources*100);

end

0 comments on commit c469ba7

Please sign in to comment.