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

📄 data_weight.m

📁 3D电阻率反演Matlab程序 RESINVM3D is a MATLAB package for inverting 3D Dc Resistivity and Electrical Resi
💻 M
字号:
function [WdW,dtw] = data_weight(MTX,para);

%This function creates the data weighting matrix
%uses simple weighting based on the SD of the measurements

% Copyright (c) 2007 by the Society of Exploration Geophysicists.
% For more information, go to http://software.seg.org/2007/0001 .
% You must read and accept usage terms at:
% http://software.seg.org/disclaimer.txt before use.
% 
% Revision history:
% Original SEG version by Adam Pidlisecky and Eldad Haber
% Last update, July 2005


%Set a threshold for the max error (percent)
maxerr = para.maxerr;
%Weights are percent standard deviation 
%get the absolute error for each datum, plus the epsilon

dtw = ((MTX.DTW/100).*abs(MTX.dobs)+para.e);
dtw = 1./dtw;

%Normalize things to 1
dtw = dtw./max(dtw);

%zero values at max error;
I = find(MTX.DTW >maxerr);
dtw(I) = 0;

WdW = spdiags(dtw, 0, length(MTX.dobs), length(MTX.dobs));

⌨️ 快捷键说明

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