entropy: Calculate the entropy of a vector.

Description Usage Arguments Value Examples

View source: R/vector_stats.R

Description

Calculate the entropy of a vector.

Usage

1
entropy(x, normalize = F)

Arguments

x

A vector.

normalize

True or false (default).

Value

The entropy of x.

Examples

1
2
entropy(c(1,2,3,4))
entropy(c(1,2,3,4), T)

ajfabry/Statspeare documentation built on Jan. 26, 2020, 7:44 a.m.