sku {geodiv}R Documentation

Calculates the Kurtosis of Raster Values

Description

Finds the kurtosis for a distribution of raster or matrix values (Sku). Kurtosis represents the peakedness of the raster surface height distribution. Height is measured as the value of a raster/matrix and may not necessarily represent actual height.

Usage

sku(x, excess = TRUE)

Arguments

x

A raster or matrix.

excess

Logical, defaults to TRUE. If TRUE, excess kurtosis is calculated. If FALSE, kurtosis is calculated as the difference from the normal distribution.

Value

A numeric value representing kurtosis.

Examples

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

# find the excess kurtosis of the raster distribution
Sku <- sku(normforest, excess = TRUE)

[Package geodiv version 1.1.0 Index]