Perform the G vector for the location of the prediction (distance and semi-variance).
[Dv,Gv] = NL_F_ForecastXY(G,S,X,X,Xi,Yi)
Gamma matrix.
Slope (least-squares regerssion line).
x-coordinate of the measurements.
y-coordinate of the measurements.
x-coordinate of the prediction location.
y-coordinate of the prediction location.
Distance vector.
G vector.
NL_F_ForecastXY performs the vectors Gv (semi-variance) and Dv (distance) for the location of the prediction [Xi,Yi].
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 | ![]() | ![]() |