quantile_MC_sgdf {spup}R Documentation

quantile() function for MC sample saved in a SpatialGridDataFrame

Description

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

Usage

quantile_MC_sgdf(realizations, ...)

Arguments

realizations

MC sample saved in SpatialGridDataFrame.

...

additional parameters.

Value

SpatialGridDataFrame; quantiles of a MC sample

Author(s)

Kasia Sawicka

Examples


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_quantile <- quantile_MC_sgdf(dem_sample, probs = c(0.1, 0.9))

## End(Not run)


[Package spup version 1.4-0 Index]