-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathinitialisation.m
More file actions
19 lines (15 loc) · 1.07 KB
/
Copy pathinitialisation.m
File metadata and controls
19 lines (15 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
% initialisation of all the quantities
if (strcmpi(opt.method,'AMP') || (strcmpi(opt.method,'AMPhb') ) || (strcmpi(opt.method,'AMPcomplex') ) || (strcmpi(opt.method,'AMPhadamard') ) || (strcmpi(opt.method,'AMPseededHadamard') ) || (strcmpi(opt.method,'AMPseededHadamardTranspose') ) || (strcmpi(opt.method,'AMPseededFourier') ) )
if (opt.remove_mean == 0); W = Y; else W = Yeff; end; V = ones(1,M);
R_init = zeros(1,N); S2_init = zeros(1,N); av_mess_init = zeros(1,N); var_mess_init = opt.signal_rho .* ones(1,N);
end
if (strcmpi(opt.method,'AMPseededHadamardTransposeA') )
if (opt.remove_mean == 0); W = Y; else W = Yeff; end; V = ones(1,N);
R_init = zeros(1,M); S2_init = zeros(1,M); av_mess_init = zeros(1,M); var_mess_init = opt.signal_rho .* ones(1,M);
end
if (strcmpi(opt.method,'AMPh') )
if (opt.remove_mean == 0); W = Y; else W = Yeff; end; V = 1;
R_init = zeros(1,N); S2_init = zeros(1,N); av_mess_init = zeros(1,N); var_mess_init = opt.signal_rho .* ones(1,N);
end
FreeEntropy = 0; FreeEntropy_OLD = FreeEntropy;
if (opt.adaptDump == 1); opt.dump_mes = 0; end