libsequence
1.9.5
|
Calculate nucleotide diversity from a polymorphic site. More...
#include <Sequence/PolyFunctional.hpp>
Calculate nucleotide diversity from a polymorphic site.
A function object to keep track of "ssh", the sum of site heterozygosity, aka pi, aka nucleotide diversity. It can be used with std::accumulate to do calculations accross a range of sites, i.e.: