shannon: Shannon Entropy

Description Usage Arguments Value Examples

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)

xiaowenchenjax/epihet documentation built on May 5, 2019, 9:20 a.m.