Simulation of Binary Random Fields
Indicator or binary field which has the value 1, if an underfield field exceeds a given threshold, 0 otherwise.
RPbernoulli(phi, stationary_only, threshold)
phi |
the |
stationary_only |
optional arguments; same meaning as for
|
threshold |
real valued.
|
RPbernoulli
can be applied to any field. If only
a covariance model is given, a Gaussian field is simulated as
underlying field.
The function returns an object of class RMmodel
.
Martin Schlather, schlather@math.uni-mannheim.de, https://www.wim.uni-mannheim.de/schlather/
RFoptions(seed=0) ## *ANY* simulation will have the random seed 0; set ## RFoptions(seed=NA) to make them all random again x <- seq(0, 10, 0.1) model <- RPbernoulli(RMexp(), threshold=0) z <- RFsimulate(model, x, x, n=4) plot(z) model <- RPbernoulli(RPbrownresnick(RMexp(), xi=1), threshold=1) z <- RFsimulate(model, x, x, n=4) plot(z)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.