Skip to content

Commit d9d5b5b

Browse files
committed
bugs fix
1 parent df84590 commit d9d5b5b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

results/results_clustering_parameters_graphs.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ function results_clustering_parameters_graphs(output_dir,nc,res1bare,res2bare,re
3737
figure(80);
3838
title('Full trajectories coverage');
3939
ci_fac = 1.96/sqrt(length(nc));
40-
plot( nc, covering*100, 'k-', 'LineWidth', 1.5);
40+
plot( nc, covering.*100, 'k-', 'LineWidth', 1.5);
4141
xlabel('N_{clus}', 'FontSize', 10);
4242
ylabel('% coverage', 'FontSize', 10);
4343
set(gcf, 'Color', 'w');
44-
set(gca, 'FontSize', 10, 'LineWidth', 1.5, 'YLim', [80, 100]);
44+
set(gca, 'FontSize', 10, 'LineWidth', 1.5);
4545
h1 = gca;
4646
box off;
4747
export_figure(1, gcf, strcat(output_dir,'/'), 'clusters_dep_coverage');

utility/algorithm_statistics.m

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@
5353
mean_per_clus_ebars1 = mean(per_clus_ebars1);
5454

5555
% find common elements
56-
a = find(per_errors1 < mean_per_errors1);
57-
b = find(per_undefined1 < mean_per_undefined1);
58-
c = find(coverage > mean_coverage);
56+
a = find(per_errors1 < mean_per_errors1 & per_errors1 < 10);
57+
b = find(per_undefined1 < mean_per_undefined1 & per_undefined1 < 40);
58+
c = find(coverage > mean_coverage & coverage > 60);
5959
d = find(per_errors_ebars1 < mean_per_errors_ebars1);
6060
e = find(per_clus_ebars1 < mean_per_clus_ebars1);
6161
common1 = intersect(intersect(a,b),c);
@@ -73,7 +73,9 @@
7373
per_errors1 = per_errors1(common1);
7474
per_undefined1 = per_undefined1(common1);
7575
coverage = coverage(common1);
76-
%else: no proposition send all the results back
76+
%no proposition send all the results back
77+
else
78+
disp('Could not find optimal number of clusters. The labelling quantity and quality needs to be checked');
7779
end
7880
% return
7981
varargout{1} = nc;

0 commit comments

Comments
 (0)