Fit the semi-variogram of a 2D dataset.
[L,IL,R] = NL_F_SemiVariogramFit(S,I,N)
Semi-variogram vector.
Index.
Number of Inter-slope.
Slope.
Index vector (regression).
Residual vector.
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.