calc_entropy: Calculates Shannon entropy of a raster stack of class...

View source: R/calc_entropy.R

calc_entropyR Documentation

Calculates Shannon entropy of a raster stack of class probabilities.

Description

Calculates Shannon entropy of a raster stack of class probabilities. Not to be confused with that requires categorical/integer raster values fo rlooking at agreement among an ensemble of models. Defaults to using the natural logarithm.

Usage

calc_entropy(raster_stack, base = exp(1))

Arguments

raster_stack

A raster stack/brick object containing layers that correspond to class probabilities

base

base of logarithm (default is natural logarithm)


ailich/mytools documentation built on Jan. 7, 2023, 11:16 a.m.