<< NL_F_ForecastLambda NL_F: Function NL_F_GammaMatrix >>

NARVAL >> NL_F: Function > NL_F_ForecastXY

NL_F_ForecastXY

Perform the G vector for the location of the prediction (distance and semi-variance).

Calling Sequence

[Dv,Gv] = NL_F_ForecastXY(G,S,X,X,Xi,Yi)

Arguments

G :

Gamma matrix.

S :

Slope (least-squares regerssion line).

X :

x-coordinate of the measurements.

Y :

y-coordinate of the measurements.

Xi :

x-coordinate of the prediction location.

Yi :

y-coordinate of the prediction location.

Dv :

Distance vector.

Gv :

G vector.

Description

NL_F_ForecastXY performs the vectors Gv (semi-variance) and Dv (distance) for the location of the prediction [Xi,Yi].

Examples

x=[1,3,1,4,5];
y=[5,4,3,5,1];
z=[100,105,105,100,115];
n=length(x);
[k,l,d,s]=NL_F_SemiVariogram(x,y,z);//semi-variogram
ni=0.1;//inter slope increment between 0 and max slope
[os,isl,di]=NL_F_SemiVariogramFit(s,d,ni);//fit
[g]=NL_F_GammaMatrix(os,k,l,d,n);//Gamma matrix
xi=1;
yi=4;
[dv,gv]=NL_F_ForecastXY(g,os,x,y,xi,yi);//application of NL_F_ForecastXY

Report an issue
<< NL_F_ForecastLambda NL_F: Function NL_F_GammaMatrix >>