<< NL_F_SemiVariogram NL_F: Function NL_F_SortColumns >>

NARVAL >> NL_F: Function > NL_F_SemiVariogramFit

NL_F_SemiVariogramFit

Fit the semi-variogram of a 2D dataset.

Calling Sequence

[L,IL,R] = NL_F_SemiVariogramFit(S,I,N)

Arguments

S :

Semi-variogram vector.

I :

Index.

N :

Number of Inter-slope.

L :

Slope.

IL :

Index vector (regression).

R :

Residual vector.

Description

NL_F_SemiVariogramFit fits the semi-variance vector (WIKIPEDIA) S of a dataset at the index I. N is used to find the best slope (semivariance versus distance with a least-squares regression line, with a positive slope and passing through zero s=slope*distance). Other models can also be applied.

Examples

x=[1,3,1,4,5];
y=[5,4,3,5,1];
z=[100,105,105,100,115];
[k,l,d,s]=NL_F_SemiVariogram(x,y,z);//SemiVariogram
ni=100;//linspace between 0 and max slope
[os,isl,di]=NL_F_SemiVariogramFit(s,d,ni);//application of NL_F_SemiVariogramFit
scf;
plot2d(isl,di);

Report an issue
<< NL_F_SemiVariogram NL_F: Function NL_F_SortColumns >>