Learn R Programming

TreeDist (version 2.10.1)

entropy_int: Calculate entropy of integer vector of counts

Description

Wrapper for C++ function; no input checking is performed. Ntropy() is better suited for use where performance is not critical.

Usage

entropy_int(n)

Value

entropy_int() returns a numeric corresponding to the entropy of each observation, in bits.

Arguments

n

a vector of integer counts