vario.create {RGeoS}R Documentation

Create a variogram from arguments

Description

Create or append a variogram from arguments

Usage

vario.create(lag, nlag, gg, hh = NA, sw = NA, nvar = 1, ndim = 2, tol = 0, 
		  codir = NA, mean = NA, vars = NA, vario = NA)

Arguments

lag

Lag value used for the calculation

nlag

Number of lags

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.

tol

Tolerance on distance used for calculations

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 RGeoS version 9.1.1 Index]