model.cpp {RGeostats} | R Documentation |
Calculate the average covariance within a set of Polygons
model.cpp(polylist, model = model.input(), dcell, seed = 321231, epsratio = 0, verbose = FALSE)
polylist |
A list of |
model |
Name of the |
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 |
A sparse square matrix containing the Polygon-Polygon covariance. Its dimension is equal to the number of polygons in the 'polylist' input argument.