entropy: Calculate the entropy

Description Usage Arguments Value Examples

Description

Calculate the Shannon's entropy.

Usage

1

Arguments

x

a numeric vector.

Value

numeric. entropy

Examples

1
2
3
4
set.seed(123)
x <- sample(1:10, 20, replace = TRUE)

entropy(x)

bit2r/kodlookr documentation built on Dec. 19, 2021, 9:49 a.m.