SpaDES (version 1.2.0)

probInit: 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 compatability 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 spatialObjects object. Currently, only provides CRS and, if p is not a raster, then all the raster dimensions.
p
probability, provided as a numeric or raster
absolute
logical. Is p absolute probabilities or relative?

Value

An RasterLayer with probabilities of initialization. There are several combinations of inputs possible and they each result in different behaviors.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) everywhereIf absolute is provided, it will override the previous statements, unless absolute is TRUE and p is not between 0 and 1 (i.e., is not a probability)