View source: R/variogramdeconv.r
autofitVgm | R Documentation |
Auto fit variogram for points.
autofitVgm(x, y = x, ngroup = c(12, 15), rd = seq(0.3, 0.9, by = 0.1),
model = c("Sph", "Exp", "Gau"), fit.nugget = TRUE, fixed.range = NA,
longlat = FALSE, fig = FALSE, ...)
x, y |
values of areas, data.frame(areaId,centx,centy,value). |
ngroup |
number of bins to average from semivariogram cloud. |
rd |
ratio of max distance between points to be considered for bins. |
model |
variogram model defined in gstat::vgms(), e.g. "Exp", "Sph", "Gau". |
fit.nugget |
fit variogram nugget or not. |
fixed.range |
variogram range fixed or not. |
longlat |
indicator whether coordinates are longitude/latitude. |
fig |
whether to plot fitted variogram. |
... |
additional parameters passed to gstat::vgm(). |
model |
fitted variogramModel. |
sserr |
fit error. |
bins |
binned gstatVariogram. |
The auto-search strategy was derived from automap::autofitVariogram()
. The function tries different initial values of vgm to find the best fitted model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.