-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCAMP_JADCE.m
More file actions
27 lines (25 loc) · 1.11 KB
/
Copy pathCAMP_JADCE.m
File metadata and controls
27 lines (25 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
function [X,Pa] = CAMP_JADCE(Y,S,gamma_w,lsfc,AMP_option)
% CAMP_JADCE
% AMP-based Activity Detection and Channel Estimation with Consistency
% Author: Hao Zhang
%
% Last updated: 2025/03/05
% -----------------------------------------------------------------------
% INPUTs |
% Y: input matrix (received signals in APs) |
% S: pilot signals transmitted |
% gamma_w: noise variance |
% lsfc: large-scale fading coefficients |
% AMP_option: 'AMP' or 'vector AMP' algorithm for message passing |
% ----------------------------------------------------------------------|
% Determine single-cell or cell-free
[L,M,K] = size(Y);
% Notice that the difference between single-cell and cell-free algorithm
% is number of variables and loops
if K==1
% single-cell algorithm
[X,Pa] = AMP_singlecell(Y,S,gamma_w,lsfc,AMP_option);
elseif K>1
% cell-free algorithm
[X,Pa] = AMP_cellfree(Y,S,gamma_w,lsfc,AMP_option);
end