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)

TheJacksonLaboratory/epihet documentation built on Dec. 22, 2020, 1:10 p.m.