The outerProbability method calculates the summed probability of the cells at the border of a raster

1 2 3 4 | ```
## S4 method for signature 'RasterLayer'
outerProbability(raster,border,...)
## S4 method for signature 'DBBMMStack'
outerProbability(raster,border,...)
``` |

`raster` |
a RasterLayer or DBBMMStack object that has values for the raster cells |

`border` |
numeric from 0 to 1; ratio of the number of columns at the border relative to the whole raster from which the probabilities should be summed up; default is 10% (0.1) |

`...` |
hand over information |

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.

numeric value for a single DBBMM object, or a list of numeric values for a DBBMMStack

Marco Smolla

1 2 3 4 5 6 | ```
data(leroydbbmm)
#calculate the probabilities of 20% of the raster at the border from a DBBMM
outerProbability(leroydbbmm, border=.2)
#calculate the probabilities of 50% of the raster at the border from a DBBMMStack
outerProbability(leroydbbmm, border=.5)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.