Function creates Gaussian random field with negative exponential correlation and visualizes correlation and random field.
Previous versions used RandomFields, but that is not currently available on CRAN. fields is now used instead, but it cannot deal with large values of size
and theta
. If you have RandomFields installed (perhaps by getting it from the CRAN archive), you can load a version of simExpCorrRF
that supports it with source(system.file("RandomFieldsSupport", "simExpCorrRF.R", package="AHMbook"))
.