91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 3KB
    文件類型: .m
    金幣: 1
    下載: 0 次
    發布日期: 2021-06-12
  • 語言: Matlab
  • 標簽: CS,SAMP??

資源簡介

壓縮感知稀疏度自適應匹配追蹤算法,不需稀疏度作為先驗信息。又稱為SAMP算法

資源截圖

代碼片段和文件信息

function?[?theta?]?=?CS_SAMP(?yAS?)
%CS_SAMP?Summary?of?this?function?goes?here
%Version:?1.0?written?by?jbb0523?@2015-05-08
%???Detailed?explanation?goes?here
%???y?=?Phi?*?x
%???x?=?Psi?*?theta
% y?=?Phi*Psi?*?theta
%???令?A?=?Phi*Psi?則y=A*theta
%???現在已知y和A,求theta
%???Reference:Thong?T.Do,Lu?Gan,Nam?Nguyen,Trac?D.Tran.Sparsity?adaptive
%???matching?pursuit?algorithm?for?practical?compressed?sensing[C].Asilomar
%???Conference?on?Signals,Systems,and?Computers,Pacific?Grove,California,
%???2008,10:581-587.
%???Available?at:
%???http://dsp.rice.edu/sites/dsp.rice.edu/files/cs/asilomar08_final.pdf
????[y_rowsy_columns]?=?size(y);
????if?y_rows????????y?=?y‘;%y?should?be?a?column?vector
????end
????[MN]?=?size(A);%傳感矩陣A為M*N矩陣
????theta?=?zeros(N1);%用來存儲恢復的theta(列向量)
????Pos_theta?=?[];%用來迭代過程中存儲A被選擇的列序號
????r_n?=?y;%初始化殘差(residual)為y
????L?=?S;%初始化步長(Size?of?the?finalist?in?the?first?stage)
????Stage?=?1;%初始化Stage
????IterMax?=?M;
????for?ii=1:IterMax%最多迭代M次
????????%(1)Preliminary?Test
????????product?=?A‘*r_n;%傳感矩陣A各列與殘差的內積
????????[valpos]=sort(abs(product)‘descend‘);%降序排列
????????Sk?=?pos(1:L);%選出最大的L個
????????%(2)Make?Candidate?List
????????C

評論

共有 條評論

相關資源