sds {geodiv} | R Documentation |
Summit Density
Description
Calculates the summit density of a raster or matrix. Summit density is the number of local peaks per unit area.
Usage
sds(x)
Arguments
x |
A raster or matrix. |
Value
A numeric value representing the summit density.
Examples
# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)
# calculate summit density.
Sds <- sds(normforest)
[Package geodiv version 1.1.0 Index]