shannon: Shannon Entropy

Description Usage Arguments Value Examples

View source: R/shannon.R

Description

Calculates the Shannon entropy value

Usage

1

Arguments

p

A vector of epiallele probabilities

Value

The Shannon entropy value

Examples

1
2
a<-c(rep(0,13),60.86960,0.00000,39.1304)
shannon(a)

epihet documentation built on Dec. 31, 2020, 2:01 a.m.