shannon: compute the shannon entropy from a vector (normalized...

View source: R/normalization.R

shannonR Documentation

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


zdk123/SpiecEasi documentation built on Oct. 20, 2023, 6:49 a.m.