Professional Documents
Culture Documents
4 1
A. Modelo exponencial
B. Modelo esferico
h h
sph (h) = Ao (h) + c(1.5 0.5 ( )3 ), para 0 h a
a a
(6)
C. Modelo lineal
III. K RIGING
El modelo de Kriging busca darle un peso a cada valor
en su afectacion sobre otro dato, dependiendo de el valor de
la distancia entre ambos datos, el cual define como el valor de
como se ve en las siguientes ecuaciones:
N
X
Zx0 = Zxi (9)
i
V. A NEXOS
A. Codigo taller 4
plot (x , y , . )
hist (z)
skewness ( z )
kurtosis (z)
[ X1 , X2] = meshgrid ( x ) ;
[ Y1 , Y2] = meshgrid ( y ) ;
[ Z1 , Z2 ] = meshgrid ( z ) ;
D= s q r t ( ( X1X2 ) . 2 + ( Y1Y2 ) . 2 ) ;
G= 0 . 5 ( Z1Z2 ) . 2 ;
indx =1: length ( z ) ;
[ C , R] = meshgrid ( i n d x ) ;
I =R>C ;
p l o t (D( I ) ,G( I ) , . )
xlabel ( lag distance )
ylabel ( variogram )
D2=D . ( d i a g ( x NaN ) + 1 ) ;
l a g =mean ( min ( D2 ) )
hmd=max (D ( : ) ) / 2 ;
m a x l a g s = f l o o r ( hmd / l a g )
LAGS= c e i l (D / l a g ) ;
for i =1: max lags
SEL = (LAGS== i ) ;
DE( i ) = mean ( mean (D( SEL ) ) ) ;
PN ( i ) = sum ( sum ( SEL = = 1 ) ) / 2 ;
GE( i ) = mean ( mean (G( SEL ) ) ) ;
end
p l o t ( DE , GE , . )
var z=var ( z ) ;
b =[ 0 max (DE ) ] ;
c =[ var z var z ] ;
h o l d on
p l o t ( b , c , r )
y l = 1 . 1 max (GE ) ;
ylim ( [ 0 yl ] )
x l a b e l ( Averaged d i s t a n c e between o b s e r v a t i o n s )
y l a b e l ( Averaged s e m i v a r i a n c e )
hold o f f
p l o t ( DE , GE , o , M a r k e r F a c e C o l o r , [ . 6 . 6 . 6 ] )
var z=var ( z ) ;
b =[ 0 max (DE ) ] ;
c =[ var z var z ] ;
h o l d on
p l o t ( b , c , r )
xlim ( b )
y l = 1 . 1 max (GE ) ;
ylim ( [ 0 yl ] )
%S p h e r i c a l model w i t h n u g g e t
nugget =0;
s i l l =0.803;
range =45.9;
l a g s = 0 : max (DE ) ;
Gsph= n u g g e t + ( s i l l ( 1 . 5 l a g s / r a n g e 0 . 5 ( l a g s / r a n g e ) . 3 ) . ( l a g s <=r a n g e ) + s i l l ( l a g s >r a n g e ) ) ;
p l o t ( l a g s , Gsph , g )
%E x p o n e n t i a l model w i t h n u g g e t
nugget =0.0239;
FACULTAD DE INGENIERIA CIVIL Y AGRICOLA, UNIVERSIDAD NACIONAL DE COLOMBIA, TALLER NO. 4 4
s i l l =0.78;
r a n g e =45 ,
Gexp= n u g g e t + s i l l (1 exp (3 l a g s / r a n g e ) ) ;
p l o t ( l a g s , Gexp , b )
%L i n e a r model w i t h n u g g e t
nugget =0.153;
slope =0.0203;
Glin=nugget+ slope lags ;
p l o t ( l a g s , G l i n , m ) ;
x l a b e l ( D i s t a n c e between o b s e r v a t i o n s )
ylabel ( Semivariance )
l e g e n d ( V a r i o g r a m e s t i m a t o r , P o p u l a t i o n , S p e r i c a l model , E x p o n e n t i a l model , L i n e a l model )
hold o f f