dot-entropy: Entropy

Description Usage Arguments Details Value

Description

Calculates the entropy of a vector x

Usage

1
.entropy(x, na_rm = FALSE)

Arguments

x

numeric or integer object

na_rm

boolean; if true, NA values are dropped from the object before calculating the entropy. Otherwise, function throws an error when x contains any NA values

Details

the function will renormalize x to sum to one

Value

returns the entropy of x


baruuum/btoolbox documentation built on Aug. 17, 2020, 1:29 a.m.