libsequence  1.9.5
generic.hpp
Go to the documentation of this file.
1 #ifndef SEQUENCE_SUMMSTATS_GENERIC_HPP
4 #define SEQUENCE_SUMMSTATS_GENERIC_HPP
5 
6 #include <unordered_map>
7 #include <cstdint>
8 
9 namespace Sequence
10 {
16  double diversity_from_counts(
17  const std::unordered_map<std::int32_t, std::int32_t>& counts,
18  const std::size_t nsam);
19 } // namespace Sequence
20 
21 #endif
double diversity_from_counts(const std::unordered_map< std::int32_t, std::int32_t > &counts, const std::size_t nsam)
Calculate heterozygosity/diversity from count data.
Definition: generic.cc:10
The namespace in which this library resides.