amp_estimate (2).zip

  • Rushi17
    了解作者
  • matlab
    开发工具
  • 906KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 0
    下载次数
  • 2020-11-24 22:28
    上传日期
AMP algorithm is deviced here
amp_estimate (2).zip
  • amp_estimate.m
    736B
  • 1k1.tiff
    1MB
内容介绍
function xhat = amp_estimate(x,y,Iter,A,Lamda) % Length of the original signal N = size(A, 2); % Length of the measurement vector n = size(A, 1); xhat = zeros(N, 1); z = y; for i=1:Iter % MSD(i,1) = (norm(x-xhat))^2; gamma = xhat + A'*z; %finding Threshold Value temp=sort(abs(gamma), 'descend'); Threshold=temp(n);% clear temp; %Threshold = Lamda* (1/sqrt(n))* (z'*z); % Soft Thresholding: Makes all the values to '0' in [-t,t] range tmp = (abs(gamma)-Threshold); tmp = (tmp+abs(tmp))/2; xhat = sign(gamma).*tmp; amp_term = (z/n)*sum((gamma > Threshold) + (gamma < -Threshold)); z = y - A*xhat+amp_term; end
评论
    相关推荐