libsequence  1.9.5
TreeOperations.hpp File Reference
#include <Sequence/Coalescent/SimTypes.hpp>
#include <vector>
#include <memory>

Go to the source code of this file.

Namespaces

 Sequence
 The namespace in which this library resides.
 
 Sequence::coalsim
 Routines for coalescent simulation.
 

Functions

double Sequence::coalsim::total_time (const marginal::const_iterator beg, const int &nsam)
 Calculate total time on a marginal tree. More...
 
int Sequence::coalsim::pick_branch (marginal::const_iterator beg, const int &nsam, const double &rtime)
 pick a random branch of a marginal tree More...
 
std::vector< int > Sequence::coalsim::get_all_descendants (marginal::const_iterator beg, const int &nsam, const int &branch)
 Find all the descendants of a branch on a marginal tree. More...
 
bool Sequence::coalsim::is_descendant (marginal::const_iterator beg, const int &ind, const int &branch)
 Ask if a tip of a tree is a descendant of a particular branch. More...
 
double Sequence::coalsim::total_time_on_arg (const Sequence::coalsim::arg &sample_history, const int &total_number_of_sites)
 Returns the total time on an ancestral recombination graph. More...
 
void Sequence::coalsim::minimize_arg (arg *sample_history)
 

Detailed Description

Things you may want to do with marginal trees in a coalescent simulations

Definition in file TreeOperations.hpp.