Learn R Programming

SEHmodel (version 0.0.11)

simulateInitialPartition: simulateInitialPartition Method

Description

This function creates an object Landscape and simulates a landscape with neutral and source fields.

Usage

simulateInitialPartition(n = 500, prop = 0.4, range = 10, xmin = 0, xmax = 5000, ymin = 0, ymax = 5000)

Arguments

n
Numeric, numbers of fields
prop
Numeric [0,1] toxic fields proportion
range
aggregation parameter (range of the spatial Exponential covariance of Gaussian process)
xmin
x-axis left coordinates
xmax
x-axis right coordinates
ymin
y-axis bottom coordinates
ymax
y-axis top coordinates

Value

An S4 Landscape object with n fields, prop pourcentage of toxic fields of size (xmin,xmax) (ymin,ymax)

Examples

Run this code
# simulate a 5000m x 5000m landscape with 500 fields whose 40% (200) are sources
  simulateInitialPartition(n=500,prop=0.4,range=10,xmin=0,xmax=5000,ymin=0,ymax=5000)

Run the code above in your browser using DataLab