A library for working with phylogenetic and population genetic data.
v0.27.0
tree/mass_tree/emd.hpp File Reference
#include <cstddef>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

class  Matrix< T >
 

Namespaces

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

Functions

double earth_movers_distance (MassTree const &lhs, MassTree const &rhs, double p=1.0)
 Calculate the earth mover's distance of two distributions of masses on a given Tree. More...
 
std::pair< double, double > earth_movers_distance (MassTree const &tree, double p=1.0)
 Calculate the earth mover's distance of masses on a given Tree. More...
 
utils::Matrix< double > earth_movers_distance (std::vector< MassTree > const &trees, double p=1.0)
 Calculate the pairwise earth mover's distance for all MassTrees. More...