sd_MC_sgdf: sd() function for MC sample saved in a SpatialGridDataFrame

Description Usage Arguments Value Author(s) Examples

View source: R/sd_MC_sgdf.R

Description

Calculates sd from MC realizations for each location in a map.

Usage

1
sd_MC_sgdf(realizations, ...)

Arguments

realizations

MC sample saved in a SpatialGridDataFrame.

...

additional parameters.

Value

SpatialGridDataFrame; a sd of a MC sample.

Author(s)

Kasia Sawicka

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
set.seed(12345)
data(dem30m, dem30m_sd)
dem_crm <- makeCRM(acf0 = 0.78, range = 321, model = "Exp")
demUM <- defineUM(uncertain = TRUE, distribution = "norm", 
                   distr_param = c(dem30m, dem30m_sd), crm = dem_crm)
## Not run: 
dem_sample <- genSample(UMobject = demUM, n = 50, samplemethod = "ugs",
                        nmax = 20, asList = FALSE)
dem_sample_sd <- sd_MC_sgdf(dem_sample)

## End(Not run)

spup documentation built on May 1, 2020, 1:07 a.m.