Line | |
---|
1 | function [y] = analyze_rankr(a,fo) |
---|
2 | % a is a matrix with experimental results. Each row indicates the results for |
---|
3 | % one matrix. |
---|
4 | % fo is the fraction of elements that are expected to be missing. |
---|
5 | % |
---|
6 | % y is (weighted) average, z is percentage achieving min_val, |
---|
7 | % w is standard dev. |
---|
8 | % |
---|
9 | a = round(10000.*a)./10000; |
---|
10 | ab = abs(a); |
---|
11 | fp = 1 - fo; |
---|
12 | numexps = size(ab,1); |
---|
13 | rank3 = sum(ab(:,1))/(numexps *fp); |
---|
14 | rank3_it = sum(ab(:,2))/(numexps *fp); |
---|
15 | dwj_rank3 = sum(ab(:,3))/(numexps *fp); |
---|
16 | dwj_rank3_it = sum(ab(:,4))/(numexps *fp); |
---|
17 | |
---|
18 | y = [rank3, rank3_it, dwj_rank3, dwj_rank3_it]; |
---|
Note: See
TracBrowser
for help on using the repository browser.