shannonEntropy: Shannon Entropy

Description Usage Arguments Examples

Description

Calculates the Shannon entropy over data of a discrete random variable X.

Usage

1

Arguments

x

A discrete vector.

Examples

1
2
3
set.seed(1)
x = round((runif(1000, min=0, max=5)))
shannonEntropy(x=x)	## 2.522265

SCCI documentation built on June 4, 2019, 5:03 p.m.

Related to shannonEntropy in SCCI...