probInit {SpaDES.tools} | R Documentation |
SELES
- Probability of Initiation
Description
Describes the probability of initiation of agents or events. THIS IS NOT FULLY IMPLEMENTED.
A SELES
-like function to maintain conceptual backwards compatibility
with that simulation tool. This is intended to ease transitions from
SELES.
You must know how to use SELES for these to be useful.
Usage
probInit(map, p = NULL, absolute = NULL)
Arguments
map |
A |
p |
probability, provided as a numeric or raster |
absolute |
logical. Is |
Value
A RasterLayer
with probabilities of initialization.
There are several combinations of inputs possible and they each result
in different behaviours.
If p
is numeric or Raster
and between 0 and 1, it is treated as an
absolute probability, and a map will be produced with the p value(s) everywhere.
If p
is numeric or Raster
and not between 0 and 1, it is treated as a
relative probability, and a map will be produced with p/max(p)
value(s) everywhere.
If absolute
is provided, it will override the previous statements, unless
absolute = TRUE
and p is not between 0 and 1 (i.e., is not a probability).
Author(s)
Eliot McIntire