Last chance! 50% off unlimited learning
Sale ends in
raster
of a random Gaussian process.RFsimulate
function in the RandomFields
package. The main addition is the speedup
argument which allows
for faster map generation. A speedup
of 1 is normal and will get
progressively faster as the number increases, at the expense of coarser
pixel resolution of the pattern generatedgaussMap(x, scale = 10, var = 1, speedup = 10, inMemory = FALSE, ...)
RasterLayer
).FALSE
.raster
.ext
with a Gaussian random pattern.RFsimulate
and extent
library(RandomFields)
library(raster)
nx <- ny <- 100L
r <- raster(nrows = ny, ncols = nx, xmn = -nx/2, xmx = nx/2, ymn = -ny/2, ymx = ny/2)
speedup <- max(1, nx/5e2)
map1 <- gaussMap(r, scale = 300, var = 0.03, speedup = speedup, inMemory = TRUE)
Plot(map1)
Run the code above in your browser using DataLab