Copyright | (c) Dominik Schrempf 2019 |
---|---|
License | GPL-3 |
Maintainer | dominik.schrempf@gmail.com |
Stability | unstable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Creation date: Mon Feb 25 13:32:56 2019.
Entropy
kEffEntropy :: Vector Double -> Double Source #
Effective number of used characters measured using entropy
. The result
only makes sense when the sum of the array is 1.0.
Homoplasy
homoplasy :: Vector Double -> Double Source #
Probability of homoplasy of vector. The result is the probability of binomially sampling the same character twice and only makes sense when the sum of the array is 1.0.
kEffHomoplasy :: Vector Double -> Double Source #
Effective number of used characters measured using homoplasy
. The result
only makes sense when the sum of the array is 1.0.
Count characters
frequencyCharacters :: AlphabetSpec -> Vector Character -> Vector Double Source #
For a given code vector of characters, calculate frequency of characters.