Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
fixed std calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
deadly7 committed Oct 9, 2016
1 parent a4d8d04 commit 311a338
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions functions/CellSortLoadTrials.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@
reference = mean(data_r_array, 3);
qualityPlot = zeros(1,size(data_r_array, 3));
parfor i = 1:size(data_r_array,3)
qualityPlot(i) = squeeze(mean(mean(data_r_array(:,:,i) - reference,1),2));
qualityPlot(i) = squeeze(mean(mean((data_r_array(:,:,i) - reference).^2,1),2));
end
qualityPlot = qualityPlot.^2;
figure;
plot(qualityPlot);
for i=1:numberGreen
Expand Down
3 changes: 1 addition & 2 deletions functions/CellSortLoadTrialsShiftCorrOnTrials.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@
reference = mean(data_r_array, 3);
qualityPlot = zeros(1,size(data_r_array, 3));
parfor i = 1:size(data_r_array,3)
qualityPlot(i) = squeeze(mean(mean(data_r_array(:,:,i) - reference,1),2));
qualityPlot(i) = squeeze(mean(mean((data_r_array(:,:,i) - reference).^2,1),2));
end
qualityPlot = qualityPlot.^2;
figure;
plot(qualityPlot);
for i=1:numberGreen
Expand Down
2 changes: 1 addition & 1 deletion main.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
CellSortXCorr(inFolder, outFolder, nSubIm, binningFactor);
%% load files
%go to corr folder
outFolder = 'F:\Arbeit\testData\PCAICA';
outFolder = 'C:\Users\ftvol\Desktop\data';
%shifft correction on all frames
%[data_g, data_r, frames, fn_green, fn_red, fileNamesGreen, fileNamesRed] = CellSortLoadTrials(outFolder);
%shift correction only on trials
Expand Down

0 comments on commit 311a338

Please sign in to comment.