Generates simulated cost data using Gaussian random fields.
Usage
simulate_cost(x, n, intensity, sd, scale)
# S3 method for class 'Raster'
simulate_cost(x, n = 1, intensity = 100, sd = 20, scale = 2.5)
# S3 method for class 'SpatRaster'
simulate_cost(x, n = 1, intensity = 100, sd = 20, scale = 2.5)Arguments
- x
terra::rast()object to use as a template.- n
integernumber of layers to simulate. Defaults to 1.- intensity
numericaverage value of simulated data. Defaults to 100.- sd
numericstandard deviation of simulated data. Defaults to 20.- scale
numericparameter to control level of spatial auto-correlation in the simulated data. Defaults to 2.5.
Value
A terra::rast() object with integer values greater than zero.
See also
Other functions for simulating data:
simulate_data(),
simulate_species()

