Calculates the probabilities at the edges of a raster
outerProbability.Rd
The outerProbability method calculates the summed probability of the cells at the border of a raster
Usage
# S4 method for class 'RasterLayer'
outerProbability(raster,border,...)
# S4 method for class 'DBBMMStack'
outerProbability(raster,border,...)
Details
The function returns the summed probability at the border (e.g. the outer 10% of the cells) of a raster. This value can be used as an indicator whether the extent of the used raster is to small for the UD calculation and therefore too much probabilities are not calculated because they are outside the raster.
Value
numeric value for a single DBBMM or dynBGB object, or a list of numeric values for a DBBMMStack
Examples
data(leroydbbmm)
#calculate the probabilities of 20% of the raster at the border from a DBBMM
outerProbability(leroydbbmm, border=.2)
#> [1] 0
#calculate the probabilities of 50% of the raster at the border from a DBBMMStack
outerProbability(leroydbbmm, border=.5)
#> [1] 0.5303753