Skip to content

Commit

Permalink
autoformat
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanharvey1 committed Nov 22, 2024
1 parent 151ec68 commit a6d79ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions preProcessing/CleanRez.m
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@
d(eye(size(d)) == 1) = nan;
% Difference between range of the electrode closest to the spike with the ranges of all the other electrodes
% When the spike is clearly visible in one elecrode group, this should be very large.
signal(i, 1) = mean(reshape(d(thismax, ~thismax), [], 1),"omitnan");
signal(i, 1) = mean(reshape(d(thismax, ~thismax), [], 1), "omitnan");
% Difference between ranges of all the other electrodes (where no real spike should be visible)
% This is our estimate of differences to be expected due to noise, rather than a real spike
noise(i, 1) = mean(reshape(d(~thismax, ~thismax), [], 1),"omitnan");
noise(i, 1) = mean(reshape(d(~thismax, ~thismax), [], 1), "omitnan");
end
% signal to noise ratio (snr) below 4 is noisy (imperically defined)
snr = signal ./ noise;
Expand Down

0 comments on commit a6d79ec

Please sign in to comment.