diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-05-11 11:38:47 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-05-11 11:38:47 +0200 |
commit | 4925b295bffdcba7db7d4be9a6f7b5b20b107068 (patch) | |
tree | 1460527bcf8d257af5668fe1e2d96093e1051dee | |
parent | b6f2cf748e0e738f99a977f03e0403b29ae62e22 (diff) | |
download | dmc-4925b295bffdcba7db7d4be9a6f7b5b20b107068.tar.gz dmc-4925b295bffdcba7db7d4be9a6f7b5b20b107068.tar.bz2 dmc-4925b295bffdcba7db7d4be9a6f7b5b20b107068.zip |
run_tests: Optimize local_min_count storage
-rw-r--r-- | run_tests.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/run_tests.m b/run_tests.m index ae504b8..57cb722 100644 --- a/run_tests.m +++ b/run_tests.m @@ -37,9 +37,9 @@ bar(terr); [min_err, err_idx] = min(err); printf('global min. error: %d\n', sum(min_err)); printf('local min count:'); -local_min_count=[]; +local_min_count=zeros(1, size(err, 1)); for i=1:size(err,1) - local_min_count = [ local_min_count sum(sum(err_idx == i)) ]; + local_min_count(i) = sum(sum(err_idx == i)); printf(' %d', local_min_count(i)); end printf('\n'); |