Learn R Programming

RandomFields (version 3.0.32)

RPprocess: Models for classes of random fields

Description

Here, all the classes of random fields are described that can be simulated

Arguments

Implemented models

ll{ Gaussian Random fields see Gaussian Max-stable Random Fields see Maxstable Other Random Fields Binary field chi2 field composed Poisson (shot noise, random coin) }

See Also

RC, RR, RM, RF

Examples

Run this code
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 <- RMexp()

z <- RFsimulate(model, x)
plot(z)

b <- RFsimulate(RPbernoulli(model), x)
plot(b)

sum( abs((z@data$variabl1 >=0 ) - b@data$variable1)) == 0 ## TRUE

FinalizeExample()

Run the code above in your browser using DataLab