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

📄 mgtlsp.m

📁 加权总体最小二乘matlab工具箱
💻 M
字号:
function [m,dh] = mgtlsp(d,w,p)% MGTLSP - Global Total Least Squares misfit computation.% [M,DH] = MGTLSP(D,W,P) gives the GTLS misfit M and the GTLS% approximation DH of the data D by the model image(P).%% See GTLS for the possible formats of W.% The computation is based on transformation to a modified TLS   % problem. As an alternative, see Corollary 2.13.[sd,N] = size(d);% Modify P and Dif length(w(:)) == sd % EWGTLS  w  = w(:); % make it a column vector  sw = sqrt(w);  p  = sw(:,ones(1,size(p,2))) .* p;  d  = sw(:,ones(1,N)) .* d; else % GTLS  sw = chol(w);  p  = sw * p;  d  = sw * d;end% Compute the TLS misfit for the modified P and Dif nargout == 1  m = mtlsp(d,p);else  [m,dh] = mtlsp(d,p);end

⌨️ 快捷键说明

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