⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myhomotopy.asv

📁 code for homotopy in compressed sensing
💻 ASV
字号:
function [x] = myHomotopy(A,y)

iterTimes = 1000;

n = size(A, 1);
m = size(A, 2);
x = zeros(m,1);
actSet = [];
state  = zeros(1,m);

for iterIdx = 1 : iterTimes
    % compute residual correlations
    c = A'*(y-Ax);
    
    % compute active set 
    [lambda, maxIdx] = max(abs(c));   
    actSet = (find(abs(c)) == lambda);
    state(m) = 1;
    
    % compute direction
    R = A(:, actSet)'*A(:,actSet);
    d = inv(R)*sign(c(actSet));
    
    % compute step
    gamma = 1000;
    for idx = 1 : m
        if state()
    end
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -