sds: Summit Density

View source: R/localsurface.R

sdsR 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)

geodiv documentation built on Oct. 6, 2023, 1:07 a.m.