Orthogonal matching pursuit
来源:互联网 发布:知错改错善莫大焉 编辑:程序博客网 时间:2024/06/04 19:52
帮别人做的问题:
自己写的程序:
% --------- The input ---------------D = zeros(10, 10);for ii=1:10, for jj=1:10, D(ii, jj) = sin(ii+jj); endendA = D + eye(10);b = [-2 -6 -9 1 8 10 1 -9 -4 -3]';S = 3;% -----------------------------------normA = normc(A);residual = b;len = size(A, 2);index = zeros(len, 1);for ii = 1:S, % Compute the inner product proj = normA'*residual; %find the max value and its index [~, pos] = max(abs(proj)); % store the index index(ii) = pos(1); %solve the least squares problem a = pinv(A(:,index(1:ii)))*b; % compute the residual in the new dictionary residual = b-A(:, index(1:ii))*a;endx = zeros(length(b), 1);x(index(1:ii)) = a;% ------- the result ---------norm(A*x-b)norm(x)
参考:
【1】MP算法和OMP算法及其思想 http://blog.csdn.net/scucj/article/details/7467955
1 0
- Orthogonal matching pursuit
- 浅谈Matching Pursuit和Orthogonal Matching Pursuit
- Orthogonal Matching Pursuit(OMP)正交匹配追踪算法
- Orthogonal Matching Pursuit(OMP)正交匹配追踪算法学习笔记
- 8.正交匹配跟踪 Orthogonal Matching Pursuit (OMP)s
- l1范数最小化求解系数方程_正交匹配追踪法(orthogonal matching pursuit)
- 匹配追踪(Matching pursuit,MP)
- orthogonal list
- Orthogonal Anagram
- 正交的 (orthogonal)
- Orthogonal Arrays (Taguchi Designs)
- [LA] Orthogonal contrasts
- SGU414 Orthogonal Circles
- Matching
- ----单词:pursuit、canonical、两会
- The Pursuit of Happyness
- the pursuit of happiness
- the pursuit of happiness
- CLLocation
- 计算几何-hdoj-1147-Pick-up sticks
- OCP 1Z0 053 47
- android.os.Environment
- 使用服务做守护进程
- Orthogonal matching pursuit
- rz
- IOS中不同组件的通信
- android-getTextSize返回值是以像素(px)为单位的,setTextSize()以sp为单位
- Lua中的table函数库
- linux下安装mysql非安装版mysql-5.1.73-linux-i686-glibc23.tar.gz
- 网络爬虫基本原理(一)
- Linux内核模块编程与内核模块LICENSE -《详解(第3版)》预读
- Alex 的 Hadoop 菜鸟教程: 第1课 hadoop体系介绍