Update wide vs narrow code

This commit is contained in:
Ksyer
2024-07-22 21:17:57 +08:00
parent 13f660826d
commit 9cbe8e31ea
14 changed files with 1642 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
function [recovery_results, sigma_w2, thresholds, C_n, A, Lambda, Lambda_C, x] = query2(FAR_N, FAR_M, sigma, LASSO_lambda)
global trail_times method;
if FAR_N == 2
lambda_length = 1;
else
lambda_length = FAR_M;
end
filename = ...
"./data3/" + ...
"FAR" + "_" + ...
string(FAR_N) + "_" + ...
string(FAR_M)+ "_" + ...
method + "_" + ...
string(sigma) + "_" + ...
string(lambda_length) + "_" + ...
string(LASSO_lambda) + "_" + ...
trail_times + ...
".mat";
filename = ...
"./data3/" + ...
"FAR" + "_" + ...
string(FAR_N) + "_" + ...
string(FAR_M)+ "_" + ...
method + "_" + ...
string(sigma) + "_" + ...
trail_times + ...
".mat";
load( ...
filename, ...
"recovery_results", "sigma_w2", "thresholds",...
"C_n", "A", "Lambda", "Lambda_C", "x" ...
);
return;
end