vario.create {RGeostats}R Documentation

Create a variogram from arguments

Description

Create or append a variogram from arguments

Usage

vario.create(lag, gg, hh = NA, sw = NA, nvar = 1, ndim = 2, toldis = 0, 
             tolang = 0, bench=0, cylrad=0, codir = NA, mean = NA, vars = NA,
             vario = NA)

Arguments

lag

Lag value used for the calculation. The number of lags is derived from the dimension of the array 'gg' divided by nvs2=nvar*(nvar+1)/2.

gg

Array containing the variogram value per class

hh

Array containing the variogram average distances per class. If this array is not provided, it is established as a multiple of the lag

sw

Array containing the variogram weight per class (usually refers to the number of pairs). If not provided, this array is constantly set to 1.

nvar

Number of variables. If nvar>1, the arrays are assumed to give consecutively, the 'nlag' values of the simple variogram of variable 1, followed by the 'nlag'values of the cross-variogram of variables 1 and 2, ... If this function is used in append mode, the number of variables in the original variogram prevails.

ndim

Space dimension. If this function is used in append mode, the space dimension in the original variogram prevails.

toldis

Tolerance on distance used for calculations

tolang

Tolerance on direction used for calculations

bench

Array containing the bench separation tolerance for each calculation direction. When bench is defined and positive, a pair is discarded if the separation distance between the two points along the third axis is larger than 'bench'.

cylrad

Array containing the cylrad tolerance for each calculation direction. When specified and positive, a pair is discarded if the separation distance in the plane orthogonal to the calculation distance is larger than 'cylrad'.

codir

Direction coefficients. If not provided, the default if the unit vector in the first direction of the space

mean

Array of the means. The dimension of this array should be equal to nvar. If not provided, it is set constantly to 0.

vars

Array of the variance-covariances. The dimension of this array should be equal to nvar*nvar. If not provided, it is set constantly to 1. for the diagonal terms and 0 otherwise.

vario

The experimental vario-class structure to which the current direction calculation should be added.

Value

A vario-class structure

See Also

db-class, vario-class,


[Package RGeostats version 11.0.6 Index]