"varMat"(object, varMatUpdate = FALSE, params = list(), ...)
"varMat"(object, object2 = NULL,...)
"varMat"(object, object2 = NULL, variogramModel, overlapObs, overlapPredObs, ...)
"varMat"(object, object2 = NULL, coor1, coor2, maxdist = Inf, variogramModel, diag = FALSE, sub1, sub2, debug.level = 1, ...)rtop (see rtop-package)
or 2) a
SpatialPolygonsDataFrame,
or SpatialPolygons,
or 3) a
matrix with geostatistical distances (see
gDist
or 4) a list with discretized supportsrtop package, set in getRtopParams. object is not an object of class rtop;
an object of the same class as object with a possible second
set of locations with supportrtop-object), see also getRtopParams. These can also
be passed in a list named params, as for the rtop-method. Typical
parameters to modify for this function:
observations and predictionLocations
that overlap each otherobjectobject2object or between the locations in object
and the locations in object2. The method for object of type rtop
calculates semivariogram matrices between observation locations, between prediction locations,
and between observation locations and prediction locations, and adds these
to object.gDist, rtop-package
## Not run:
# library(rgdal)
# rpath = system.file("extdata",package="rtop")
# observations = readOGR(rpath,"observations")
# gDist = gDist(observations)
# vmod = list(model = "Ex1", params = c(0.00001,0.007,350000,0.9,1000))
# vm = varMat(gDist$gDistObs, variogramModel = vmod)
# ## End(Not run)
Run the code above in your browser using DataLab