model.cpp {RGeostats}R Documentation

Calculate the average covariance within a set of Polygons

Description

Calculate the average covariance within a set of Polygons

Usage

model.cpp(polylist, model = model.input(), dcell, seed = 321231, epsratio = 0, verbose = FALSE)

Arguments

polylist

A list of polygon-class structures

model

Name of the model-class which contains the characteristics of the Model. For more information check check.model.

dcell

Array containing the cell extension of the internal discretization grid along each axis.

seed

Seed used for the generation of random numbers. When 0, the seed is not initialized.

epsratio

Q calculation shortcut is provided to avoid calculating useless Polygon-Polygon covariance: the punctual covariance between their centers is calculated. It this value is smaller than C(0) * 'epsratio', the Polygon-Polygon covariance calculation is bypassed and considered as 0. This shortcut is performed only if 'epsratio' is strictly positive.

verbose

Verbose flag:

1 The program simply issues a message each time a new Polygon is processed 2 The program displays all the Polygon-Polygon covariance together with the number of discretization cells per Polygon

Value

A sparse square matrix containing the Polygon-Polygon covariance. Its dimension is equal to the number of polygons in the 'polylist' input argument.


[Package RGeostats version 14.0.10 Index]