Description Usage Arguments Value Examples
This function creates an object Landscape
and simulates a landscape with neutral and source fields.
1 2 | simulateInitialPartition(n = 500, prop = 0.4, range = 10, xmin = 0,
xmax = 5000, ymin = 0, ymax = 5000)
|
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 |
An S4 Landscape
object with n
fields, prop
pourcentage of toxic fields of size (xmin,xmax) (ymin,ymax)
1 2 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.