SpiecEasi (version 1.0.2)

shannon: compute the shannon entropy from a vector (normalized internally)

Description

Shannon entropy is: sum [ x_i log(x_i) ]

Usage

shannon(x)

Arguments

x

data vector

Value

shannon entropy in base e