Description Usage Arguments Details Value See Also Examples
Indicator or binary field which has the value 1, if an underfield field exceeds a given threshold, 0 otherwise.
1 | 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
.
Auxiliary RMmodels
,
RP,
RMbernoulli
.
1 2 3 4 5 6 7 8 9 10 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.