- 积分
- 26283
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-6-1
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
function StaAno = StaFiltAno( location, stavalue, winsize )
StaAno = zeros(length(stavalue),1);
%% the distance of each station
s = length(location);
DisMat = zeros(s,s);
for m = 1:s
for n = m:s
tempdis = sqrt(( location(1,m) - location(1,n) )^2 + ( location(2,m) - location(2,n) )^2 );
DisMat(m,n) = tempdis;
DisMat(n,m) = tempdis;
clear temp*;
end
end
%%
for m = 1:s
tempdis = DisMat(m,:);
tempindex = find(tempdis < winsize);
tempvalue = stavalue(tempindex);
StaAno(m) = stavalue(m) - mean(tempvalue);
end
end
|
|