資源簡介
這是矩陣的廣義低秩逼近的matlab源代碼。
代碼片段和文件信息
function?[LMR?err]??=?GLRAM(A?L?low1?low2?ITE)
%------------------------------------------------------------------
%?Input???A:?data?matrix
%?????????L:?initial?L0
%?????????low1:?row?dimension?of?reduced?representation?M{i}
%?????????low2:?column?dimension?of?reduced?representation?M{i}
%?????????ITE:?number?of?iterations
%?Output:?L:?left?transformation
%?????????M:?reduced?representation
%?????????R:?right?transformation
%?????????err:?reconstruction?error?measured?by?RMSRE??
%-------------------------------------------------------------------
%[row?col]?=?size(A{1});?%?row?and?column?dimensions?of?A{i}
n??????????=?size(A2);?%?number?of?data?points
%-------------------------------------------------------------------
????????????????????????????????????????????????????????????????????????????????????????????????????????
for?ite?=?1:ITE
MU?=?0;
for?i?=1:n
?????TU?=?L‘*?A{i};
?????MU?=?MU?+?TU‘*TU;
end;
[V?U]=eig(MU);
U=diag(U);
U=flipud(U);
V?=fliplr(V);
R=V(:1:low2);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1848??2012-09-08?22:14??GLRAM\GLRAM.m
?????文件???????1630??2013-04-23?10:47??GLRAM\Unti
?????文件???????1630??2013-04-23?10:49??GLRAM\Unti
?????目錄??????????0??2013-05-28?17:30??GLRAM
-----------?---------??----------?-----??----
?????????????????5108????????????????????4
- 上一篇:OBD規范 PID說明
- 下一篇:三角形面積計算器(海倫公式)
評論
共有 條評論