Skip to content

Commit

Permalink
Changed: Shortend filenames in cat_plot_histogram.m
Browse files Browse the repository at this point in the history
Changed paths:
 M CHANGES.txt
 M cat_plot_histogram.m
 M cat_stat_marks.m
  • Loading branch information
ChristianGaser committed May 3, 2024
1 parent 7e858db commit fcd62ce
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
9 changes: 9 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
------------------------------------------------------------------------
r2577 | gaser | 2024-05-03 21:49:53

Changed paths:
M CHANGES.txt
M cat_plot_histogram.m
M cat_stat_marks.m

Changed: Shortend filenames in cat_plot_histogram.m
------------------------------------------------------------------------
r2575 | dahnke | 2024-04-25 19:06:07

Changed paths:
Expand Down
15 changes: 11 additions & 4 deletions cat_plot_histogram.m
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@
fig = figure;
set(fig,'MenuBar', 'none', 'Position',[100, 0, opt.winsize]);

% get shorter filenames
[tmp, fname_tmp] = spm_str_manip(data,'C');

for j = 1:n
y = dropNaNs(cdata{j});
if ~isempty(opt.dist)
Expand All @@ -242,8 +245,12 @@
H(j,:) = H0;
X(j,:) = X0;
if ischar(data)
legend_str{j} = char(spm_str_manip(data(j,:),'a90'));

if ~isempty(fname_tmp)
legend_str{j} = fname_tmp.m{j};
else
legend_str{j} = char(spm_str_manip(data(j,:),'a90'));
end

% give some specific output for (normally distributed) T-values or
% effect size (D)
[pth,nam] = spm_fileparts(deblank(data(j,:)));
Expand All @@ -253,10 +260,10 @@
sd = std(y);
ES = mn/sd;
TH5 = X0(min(find(cumsum(H0)/sum(H0) > 0.95)));
fprintf('%s\tmean=%g\tSD=%g\tES=%g\tTH5=%g\n',data(j,:),mn,sd,ES,TH5);
fprintf('%s\tmean=%g\tSD=%g\tES=%g\tTH5=%g\n',legend_str{j},mn,sd,ES,TH5);
legend_str{j} = sprintf('TH5=%.4f %s',TH5,legend_str{j});
else
fprintf('%s\tSD=%g\n',data(j,:),std(y));
fprintf('%s\tSD=%g\n',legend_str{j},std(y));
end
else
legend_str{j} = num2str(j);
Expand Down
2 changes: 1 addition & 1 deletion cat_stat_marks.m
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
% BWP.NCRm = evallinear(QA.qualitymeasures.NCR ,0.05,0.35,6);
% BWP.MVRm = evallinear(QA.qualitymeasures.res_RMS,0.50,3.00,6);

% SIQR is the successor of IQR and also uses the new edge-based resoltion rating
% SIQR is the successor of IQR and also uses the new edge-based resolution rating
try
QAM.qualityratings.SIQR = rms([QAM.qualityratings.NCR QAM.qualityratings.res_RMS QAM.qualityratings.res_ECR],8);
% further test cases
Expand Down

0 comments on commit fcd62ce

Please sign in to comment.