A library for working with phylogenetic and population genetic data.
v0.32.0
placement/function/emd.hpp File Reference
#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::placement
 
 genesis::utils
 

Functions

double earth_movers_distance (Sample const &lhs, Sample const &rhs, double const p=1.0, bool const with_pendant_length=false)
 Calculate the earth mover's distance between two Samples. More...
 
utils::Matrix< double > earth_movers_distance (SampleSet const &sample_set, double const p=1.0, bool const with_pendant_length=false)
 Calculate the pairwise Earth Movers Distance for all Samples in a SampleSet. More...