TreeOperations.hpp File Reference

#include <Sequence/Coalescent/SimTypes.hpp>
#include <vector>
#include <memory>

Go to the source code of this file.

Namespaces

namespace  Sequence
 

The namespace in which this library resides.


Functions

double Sequence::total_time (const marginal::const_iterator beg, const int &nsam)
 Calculate total time on a marginal tree.
int Sequence::pick_branch (marginal::const_iterator beg, const int &nsam, const double &rtime)
 pick a random branch of a marginal tree
std::vector< int > Sequence::get_all_descendants (marginal::const_iterator beg, const int &nsam, const int &branch)
 Find all the descendants of a branch on a marginal tree.
bool Sequence::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.
double Sequence::total_time_on_arg (const Sequence::arg &sample_history, const int &total_number_of_sites)
 Returns the total time on an ancestral recombination graph.
void Sequence::minimize_arg (Sequence::arg *sample_history)

Detailed Description

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

Definition in file TreeOperations.hpp.

Generated on Thu Aug 11 13:22:00 2011 for libsequence by  doxygen 1.6.3