source: proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/missing-data/analyze_rankr.m @ 37

Last change on this file since 37 was 37, checked in by (none), 14 years ago

Added original make3d

File size: 568 bytes
Line 
1function [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%
9a = round(10000.*a)./10000;
10ab = abs(a);
11fp = 1 - fo;
12numexps = size(ab,1);
13rank3 = sum(ab(:,1))/(numexps *fp);
14rank3_it = sum(ab(:,2))/(numexps *fp);
15dwj_rank3 = sum(ab(:,3))/(numexps *fp);
16dwj_rank3_it = sum(ab(:,4))/(numexps *fp);
17
18y = [rank3, rank3_it, dwj_rank3, dwj_rank3_it];
Note: See TracBrowser for help on using the repository browser.