Description Usage Arguments Details Value References Examples
View source: R/rBrownResnick.R
simulBrownResnick
provides n
replicates of a Brown–Resnick max-stable process with semi-variogram vario
at locations loc
.
1 | simulBrownResnick(n, loc, vario, nCores = 1, cl = NULL)
|
n |
Number of replicates desired. |
loc |
Matrix of coordinates as given by |
vario |
Semi-variogram function. |
nCores |
Number of cores needed for the computation |
cl |
Cluster instance as created by |
The algorithm used here is based on the spectral representation of the Brown–Resnick
model as described in Dombry et al. (2015). It provides n
exact simulations
on the unit Frechet scale and requires, in average, for each max-stable vector, the simulation of d Pareto processes,
where d is the number of locations.
List of n
random vectors drawn from a max-stable Brown–Resnick process
with semi-variogram vario
at location loc
.
Dombry, C., Engelke, S. and M. Oesting. Exact simulation of max-stable processes. Biometrika, 103(2), 303-317.
1 2 3 4 5 6 7 8 9 10 | #Define semi-variogram function
vario <- function(h){
1 / 2 * norm(h,type = "2")^1.5
}
#Define locations
loc <- expand.grid(1:4, 1:4)
#Simulate data
obs <- simulBrownResnick(10, loc, vario)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.