A library for working with phylogenetic data.
v0.25.0
structure.cpp File Reference
#include "genesis/population/functions/structure.hpp"
#include "genesis/population/functions/base_counts.hpp"
#include "genesis/utils/math/common.hpp"
#include <cassert>
#include <cmath>
#include <stdexcept>

Go to the source code of this file.

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::population
 

Functions

FstAN f_st_asymptotically_unbiased_a1n1a2n2 (BaseCounts const &p1, BaseCounts const &p2)
 Compute the a and n values needed for the asymptotically unbiased F_ST estimator of Karlsson et al. More...
 
std::pair< double, double > f_st_asymptotically_unbiased_nkdk (FstAN const &fstan)
 Compute the N_k and D_k values needed for the asymptotically unbiased F_ST estimator of Karlsson et al. More...
 
std::tuple< double, double, double > f_st_conventional_pool_pi_snp (BaseCounts const &p1, BaseCounts const &p2)
 Compute the SNP-based Theta Pi values used in f_st_conventional_pool() More...