shannon {epihet}R Documentation

Shannon Entropy

Description

Calculates the Shannon entropy value

Usage

shannon(p)

Arguments

p

A vector of epiallele probabilities

Value

The Shannon entropy value

Examples

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

[Package epihet version 1.8.0 Index]