spk: Reduced Peak Height

View source: R/bearingarea.R

spkR Documentation

Reduced Peak Height

Description

Determines the reduced peak height (Spk), the height difference between the maximum y value of the bearing area curve and the y value of the highest intersection point of the least mean square line fit to the flattest 40% of the bearing area curve. See Figure 2a from Kedron et al. (2018) for more details.

Usage

spk(x)

Arguments

x

A raster or matrix.

Value

A numeric value representing the reduced peak height.

Examples

# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)

# determine the reduced peak height
Spk <- spk(normforest)

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