A toolkit for working with phylogenetic data.
v0.24.0
balances.cpp File Reference
#include "genesis/tree/mass_tree/balances.hpp"
#include "genesis/tree/common_tree/functions.hpp"
#include "genesis/tree/common_tree/operators.hpp"
#include "genesis/tree/function/operators.hpp"
#include "genesis/tree/mass_tree/functions.hpp"
#include "genesis/tree/mass_tree/tree.hpp"
#include "genesis/tree/tree.hpp"
#include "genesis/utils/math/common.hpp"
#include "genesis/utils/math/distance.hpp"
#include "genesis/utils/math/statistics.hpp"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <functional>
#include <limits>
#include <stdexcept>
#include <unordered_set>
#include <vector>

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::tree
 

Functions

std::vector< double > mass_balance (BalanceData const &data, std::unordered_set< size_t > const &numerator_edge_indices, std::unordered_set< size_t > const &denominator_edge_indices)
 Calculate the balance of edge masses between two sets of edges. More...
 
double mass_balance (BalanceData const &data, std::unordered_set< size_t > const &numerator_edge_indices, std::unordered_set< size_t > const &denominator_edge_indices, size_t tree_index)
 Calculate the balance of edge masses between two sets of edges. More...
 
BalanceData mass_balance_data (std::vector< MassTree > const &trees, BalanceSettings settings={})
 Calculate the data needed to calculate balances on MassTrees. More...
 
BalanceData mass_balance_data (MassTree const &tree, BalanceSettings settings={})
 Calculate the data needed to calculate balances of a MassTree. More...