shannon_entropy: Shannon entropy

View source: R/util.R

shannon_entropyR Documentation

Shannon entropy

Description

Defined as -sum(|x| * log(|x|))

Usage

shannon_entropy(x)

Arguments

x

[numeric] vector or matrix

Value

Shannon entropy of x


FlukeAndFeather/cetaceanbcg documentation built on July 7, 2022, 12:36 p.m.