Add "FAR vs PD"

This commit is contained in:
Ksyer
2024-05-11 15:43:25 +08:00
parent 17386d80c1
commit b48ab07dd0
21 changed files with 412 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
clear; clc;
%% 参数设置
global N M lambda tau iter_max method trail_times epi extend_target K;
N = 64;
M = 4;
K = 10;
lambda = zeros(M * N, 1);
lambda(:) = 0.3;
tau = 1e-4;
iter_max = 500;
% method = "debiased_LASSO";
% method = "LASSO";
method = "BP";
% method = "VAMP";
trail_times = 1e2;
epi = 0;
extend_target = 1;
%% FAR
P_fa_FAR = FAR_simu(3);
% fprintf("FAR: %f\n", P_fa_FAR);
%% PD
P_fa_PD = PD_simu(1);
fprintf("PD: %f\n", P_fa_PD);