source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/missing-data/compare_random.m
@
37
Last change on this file since 37 was 37, checked in by , 14 years ago | |
---|---|
File size: 275 bytes |
Line | |
---|---|
1 | function y = compare_random(F,P,r,IP,sigma,it,n) |
2 | |
3 | for j = 1:n |
4 | U = rand(F,r); |
5 | V = rand(P,r); |
6 | M = U*V'; |
7 | ERR = randn(size(M)).*sigma; |
8 | INC = rand(F,P)>IP; |
9 | if rem(j,5)==0 |
10 | y = [y', compare(M,INC,r,ERR,it)']' |
11 | else |
12 | y = [y', compare(M,INC,r,ERR,it)']' |
13 | end |
14 | end |
Note: See TracBrowser
for help on using the repository browser.