sku: Calculates the Kurtosis of Raster Values

View source: R/basics.R

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

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